Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > build a hierarchical tree, without using DOM,schema, and sax using expat parser and c

Reply
Thread Tools

build a hierarchical tree, without using DOM,schema, and sax using expat parser and c

 
 
pharioum@gmail.com
Guest
Posts: n/a
 
      11-05-2007
I've been experimenting with the jclark's expat parser. I compiled it
on
linux, and it works just great. However, finding tags and data by
implementing the callback functions in c language is cumbersome.
Has anybody written code that uses the expat callback's in such a way
as to
build a hierarchical tree, without using DOM,schema, and sax, that can
be traversed.My purpose, just enough to traverse branches and find
leafs of a xml documents without using DOM, schema, and sax, and i
also want help regarding how to convert a xml document to a
hierachical tree which contains tags values. thanks

 
Reply With Quote
 
 
 
 
Pavel Lepin
Guest
Posts: n/a
 
      11-05-2007

< > wrote in
<. com>:
> I've been experimenting with the jclark's expat parser. I
> compiled it on
> linux, and it works just great. However, finding tags and
> data by implementing the callback functions in c language
> is cumbersome. Has anybody written code that uses the
> expat callback's in such a way as to
> build a hierarchical tree, without using DOM,schema, and
> sax, that can be traversed.


You know, changing your From header from
<> to <> and
reposting the same question in a different wording for the
fifth time in a week is a Bad Idea, because it Annoys
Regulars, and is Not Working Anyway. You've already been
told to Do Your Own Homework. Yet another clueless droid
with a degree is the last thing this industry needs.

<http://www.catb.org/~esr/faqs/smart-questions.html>

--
"I can't help but wonder if you... don't know a hell of a
lot more about practically every subject than Solomon ever
did."
 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      11-05-2007
wrote:
> build a hierarchical tree, without using DOM,schema, and sax


The usual approach is to use the SAX output as input to your
tree-structure builder. If you really insist on bypassing SAX, you're
out of the domain of standard APIs and into mucking with the internals
of the parser, which is never a good thing to do unless you have very
specific requirements that the standards can't handle.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
build a hierarchical tree, without using DOM,schema, and sax usingexpat parser and c sharan Python 2 11-16-2007 06:24 PM
using expat parser how to build a tree shaped data structure of a xml document and read the value from it in c language sharan XML 4 11-05-2007 08:59 AM
Want help on how we convert output to tabular format Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. sharan XML 1 10-26-2007 01:20 PM
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. Want a c program on that! sharan XML 1 10-26-2007 07:56 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57