FAQ
Please is there anyone woking on XMLLoader; please if you have any examples,
documentation or anything that could help me to work perfecty with this
function; that will be very helpful

Kind regards


On Tue, Feb 22, 2011 at 3:59 PM, Baraa Mohamad wrote:

Hi all

if I have the following XML file

<attr tag="00020000" vr="UL" len="4">180</attr>
<attr tag="00020001" vr="OB" len="2">00\01</attr>

*how I can read it using xmlloader, I mean how I can read for examlpe the
value of tag and vr which are inside the attr attribute *?

I already wrote the following

A = load 'dicoms/' using org.apache.pig.piggybank.storage.XMLLoader('attr')
as (x:chararray);

But that will consider all the line as a chararray so how i can read the
values of tag, vr and attr ??

best regards

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedFeb 22, '11 at 2:59p
activeMar 1, '11 at 9:59a
posts6
users4
websitepig.apache.org

People

Translate

site design / logo © 2021 Grokbase