Return data of specific fields of an XML file using a method

fuebysubsSues

New Member
I am working on XML parsing by programming in c++. For the parsing I am using the Xerces project by Apache which provides the DOM API. In my program I require a code which enables the user to enter one of the fields of the XML file which returns the value stored within that field. I tried using the \[code\]GetData\[/code\] method provided by the \[code\]DOMCharacterData\[/code\] class but since the method is virtual I cannot create a constructor. And so even though program is compiling, it is showing segmentation error on running which is evident no memory is allocated during coding. I need a solution to this. How can I appropriately use the \[code\]GetData\[/code\] method? Is there any other way I can return a field's value by specifying the just the field's name?Any kind of help is appreciated.
 
Back
Top