F
foolproofplan
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
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