cancel
Showing results for 
Search instead for 
Did you mean: 

SAX Parser

Former Member
0 Kudos

Hi Guys,

I have just gone through the SAX Praser , i have a basic doubt

using (startElement) / (endElement) do we need to enter all the element of the target XML structure.

For example i would be having 100 elements in the target XML structure.

From the source XML i need only some elements need to be validated and map only 10 elements of the target XML.

Rest elements of the Target is just one to one mapping

Do i need to type all other 90 elements ??

kinldy share your views

Regards

Sr

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206760
Active Contributor
0 Kudos

Dear Venkat,

As far as i know....you need to create the entire target tree using it...

Former Member
0 Kudos

Thxs for ur reply

Guys any more comments

do i need to type all other 90 elements ???

views ?

rgds

srini

former_member181985
Active Contributor
0 Kudos

Yes you need to code remaining 90 elements as SAX Parser is event based.

Thanks,

- Gujjeti.

Former Member
0 Kudos

Hi

Thq all

rgds

srini

Former Member
0 Kudos

hi,

in sax parser there is nothing concept like, how many elements u have in source and how many in destination..

if u want all the elements u just write start element and end element correspondingly..

if u dnt want some elements u can just skip start and element elements for them...

recording records.. u can choose ur records how many u want by givine constraits in characters() method.

i hope this wll solve ur problem...