[ 
https://issues.apache.org/jira/browse/PIG-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vivek Padmanabhan updated PIG-2147:
-----------------------------------

    Attachment: PIG-2147_1.patch

Attaching an initial patch.

> Support nested tags for XMLLoader
> ---------------------------------
>
>                 Key: PIG-2147
>                 URL: https://issues.apache.org/jira/browse/PIG-2147
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Vivek Padmanabhan
>            Assignee: Vivek Padmanabhan
>             Fix For: 0.8.1, 0.9.0
>
>         Attachments: PIG-2147_1.patch
>
>
> Currently xmlloader does not support nested tags with same tag name, ie if i 
> have the below content
> {code}
> <event>
>  <relatedEvents>
>    <event>x<\event>
>    <event>y<\event>
>    <event>z<\event>
>  <\relatedEvents>
> <\event>
> {code}
> And I load the above using XMLLoader,
> events = load 'input' using 
> org.apache.pig.piggybank.storage.XMLLoader('event') as (doc:chararray);
> The output will be,
> {code}
> <event>
>  <relatedEvents>
>    <event>x<\event>
> {code}
> Whereas the desired output is ;
> {code}
>  <relatedEvents>
>    <event>x<\event>
>    <event>y<\event>
>    <event>z<\event>
>  <\relatedEvents>
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to