Respected Sir,
Little correction in statement above second sample . There should be a
"not" which i missed, the corrected statement is :
I am *not *able to parse below below sample input structure.
<?xml version="1.0"?>
<catalog>
<library1>
<book id="bk101">
<name>XML Developer's Guide</name>
<price>44.95</price>
</book>
</library1>
<book id="bk101">
<author>Gambardella Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>Epic1</description>
</book>
<book id="bk102">
<author>Ralls Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-12-16</publish_date>
<description>Epic2</description>
</book>
</catalog>
With Regards ,
Aditya
On Thu, Jul 12, 2018 at 4:46 PM, aditya shivankar <
[email protected]> wrote:
> Respected Sir,
>
> I am using smooks mediator to process huge xml in wso2.
>
> Using the smooksConfig file attached .
>
> I am able to parse below below sample input structure.
>
> <?xml version="1.0"?><catalog>
> <book id="bk101">
> <author>Gambardella Matthew</author>
> <title>XML Developer's Guide</title>
> <genre>Computer</genre>
> <price>44.95</price>
> <publish_date>2000-10-01</publish_date>
> <description>Epic1</description>
> </book>
> <book id="bk102">
> <author>Ralls Kim</author>
> <title>Midnight Rain</title>
> <genre>Fantasy</genre>
> <price>5.95</price>
> <publish_date>2000-12-16</publish_date>
> <description>Epic2</description>
> </book> </catalog>
>
> But for another structure like below. Not able to decide, how the resource
> selector will decide , for which book tag to create book model.
>
> I am able to parse below below sample input structure.
>
> <?xml version="1.0"?><catalog>
> <library1>
> <book id="bk101">
> <name>XML Developer's Guide</name>
> <price>44.95</price>
> </book>
> </library1>
> <book id="bk101">
> <author>Gambardella Matthew</author>
> <title>XML Developer's Guide</title>
> <genre>Computer</genre>
> <price>44.95</price>
> <publish_date>2000-10-01</publish_date>
> <description>Epic1</description>
> </book>
> <book id="bk102">
> <author>Ralls Kim</author>
> <title>Midnight Rain</title>
> <genre>Fantasy</genre>
> <price>5.95</price>
> <publish_date>2000-12-16</publish_date>
> <description>Epic2</description>
> </book> </catalog>
>
> resource selector in smooksConfig file attached is like below:
>
> <resource-config selector="catalog,book">
> <resource>org.milyn.delivery.DomModelCreator</resource>
> </resource-config>
>
> from above configuration I understand it will one catalog model and one
> book model. but the book model will be created for which book tag
> catalog/library1/book
> or catalog/book ?
>
> I read many documents on internet. Even below example but could not get
> concept. https://access.redhat.com/documentation/en-
> us/red_hat_jboss_fuse/6.3/html/smooks_development_guide/
> example_of_using_sax1
>
> please guide.
>
> With Regards Aditya
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev