Greetings! Did someone encounter the same issue?
Well-formated XML for <Sellers></Sellers> is fine:
grunt> register /usr/lib/pig/piggybank.jar;
grunt> a = load 'sample.xml' using
org.apache.pig.piggybank.storage.XMLLoader('Sellers') as (doc:chararray);
grunt> dump a;
(<Sellers>
<Seller SellerName="Leebay-Brothers" SellerRating="3.9"
SellerPrice="3,499.99" ContactInfo="" ContactPhoneInfo=""/>
</Sellers>)
Short-hand XML for <Seller/> is NOT good:
grunt> a = load 'sample.xml' using
org.apache.pig.piggybank.storage.XMLLoader('Seller') as (doc:chararray);
grunt> dump a;
I got nothing here.