xerces/SAX xml search



I am currently working on coding something in c++ which allows me to
find locations (line/column) of certain elements and attributes within
an xml file. For this task, I am trying to create a SAX parser which
will search through an xml file as it parses. I have set up a simple
SAX parser and an empty handler.

I need a point in the right direction on where to begin with making
the parse search. I am not sure what is the best way to have the
parser take something like a string which would keep track of exactly
what i am looking for.

I am also unsure how to handle the search itself. Should I have two
parsers? (One which begins to find elements that fit the first
elements description and then parse that element to see if it contains
all the criteria/hierarchy of what i am looking for.)

Thanks in advance,
- Marc

.



Relevant Pages

  • MSXML SAX parsing with C code
    ... I am trying to parse an xml file using MSXML SAX parser in C. ... Please guide me on how to proceed with parsing. ...
    (microsoft.public.vc.language)
  • Strange performance behavior of IXMLDOMNode>>text in DPRO 5.1.4
    ... I have come a quite a way in building my own framework to parse a particular XML file (that contains information about audio tracks). ... After some more experimentation I also found that the bigger the XML file was, the longer each method execution took, even if it was for the same node at the same position. ...
    (comp.lang.smalltalk.dolphin)
  • RE: Bug in MSXML / XML Parser .Net
    ... > I have a problem parsing XML file using XSLT stylesheet by using: ... > System.Xml.XPath.MethodOperand.SetXsltContext(XsltContext context) ... > When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect. ...
    (microsoft.public.dotnet.xml)
  • Re: How to get data from txt file into table of word template thro
    ... XLST file to transform the XML file into the output you need? ... I have a word document which has a lot of tables ... There's no way to answer the question about whether VBA is the best ... For the XML data source file, you said Word can parse it by itself. ...
    (microsoft.public.word.vba.general)
  • map and BYTE[]
    ... I need to parse a XML file that describes a smart card file structure ... CDataIndex(int nSFID, int nRecNo, int nOffset, int size) { ...
    (comp.lang.cpp)