You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jones, Brian O." <bo...@ngc.com> on 2004/07/23 21:29:34 UTC

more parsing issue

Has any one tried to parse files that has one long string???

And if so did you reformat the file and then parse or what???

for example
<?xml version="1.0"?><myLib><ID>123</ID><Entries>2</Entries><myEntries><myType><one>Hello</one><two>World</two><numTbl>2</numTbl><myTable><myTableEntry><three>Stop</three><four>Fighting</four></myTableEntry><myTableEntry><five>Right</five><six>Now</six>/myTableEntry></myTable></myType><myType><one>Hello</one><two>World</two><numTbl>2</numTbl><myTable><myTableEntry><three>Stop</three><four>Fighting</four></myTableEntry><myTableEntry><five>Stop</five><six>Fighting</six></myTableEntry></myTable></myType>/myEntries></myLib>

This long string just takes my out and appends the values together...

Any clue as to be way to parse this file and retrieve the correct values.

Brian Jones
Senior Software Engineer
(Email) bo.jones@ngc.com
Phone (410) 993-2072
Fax (410) 981-8381




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: more parsing issue

Posted by Alberto Massari <am...@progress.com>.
Hi Brian,

At 12.29 23/07/2004 -0700, Jones, Brian O. wrote:
>Has any one tried to parse files that has one long string???

Yes...


>And if so did you reformat the file and then parse or what???

No. Parsing just works.


>for example
><?xml 
>version="1.0"?><myLib><ID>123</ID><Entries>2</Entries><myEntries><myType><one>Hello</one><two>World</two><numTbl>2</numTbl><myTable><myTableEntry><three>Stop</three><four>Fighting</four></myTableEntry><myTableEntry><five>Right</five><six>Now</six>/myTableEntry></myTable></myType><myType><one>Hello</one><two>World</two><numTbl>2</numTbl><myTable><myTableEntry><three>Stop</three><four>Fighting</four></myTableEntry><myTableEntry><five>Stop</five><six>Fighting</six></myTableEntry></myTable></myType>/myEntries></myLib>
>
>This long string just takes my out and appends the values together...

What do you mean by "takes my out and appends the values"? Can you write 
what you get? And, more important, what code did you write?

Alberto


>Any clue as to be way to parse this file and retrieve the correct values.
>
>Brian Jones
>Senior Software Engineer
>(Email) bo.jones@ngc.com
>Phone (410) 993-2072
>Fax (410) 981-8381
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org