cancel
Showing results for 
Search instead for 
Did you mean: 

What is an XML PARSER?

Former Member
0 Kudos

What is an XML Parser?

what is it's use?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

XI is middleware tool to send data from one location to another Basically a middleware tool.

and the data that XI send has some structre like

firstname:XYZ

Middlaename:ABX

lastname:PQR

All this data is represent as XML ( A way to store the data with tag here it is firstname last name

So XI uses XLL parser to parse this data

After parsing XI will come to know what is first name what is last name

So actually dat is represent as below in XML

<firstname>XYZ</firstname>

<Middlaename>ABX</Middlaename>

<lastnamePQR</lastname>

Above is the defination of data that XI is going to send

But in case data is wrong like

<Middlaename>ABX</Middlaename>

<firstname>XYZ</firstname>

<lastnamePQR</lastname>

Note Here ABX is first line

and this data is wrong

XI will find this wrong data with help of XML parser which has correct defination of the data

in case data is wrong parser will give error that data is wrong

Ps: If helful please give point

Former Member
0 Kudos

Hi Dhanunjay

in addition to sinha , Dom parser are memory extensive

For catalouge types data you need to use SAX parser

for more details on parser you may follow these links

For sax and DOM parsing

http://www.oracle.com/technology/oramag/oracle/03-sep/o53devxml.html

http://search.cpan.org/dist/XML-LibXML/lib/XML/LibXML/Parser.pod

Thanks

sandeep

rewartd points if helpful

aashish_sinha
Active Contributor
0 Kudos

Hi,

XML Parser

The Extensible Markup Language (XML) is a W3C-recommended general-purpose markup language. An XML parser is a processor that reads an XML document and determines the structure and properties of the data. It breaks the data up into parts and provides them to other components.

Benifit

XML Parser can parse one or more XML documents. As it is based on a non-validating parser, it only checks for the document well-formedness, and does not fill in implied attributes. A user-defined handler can be called on each event encountered by the parser, allowing processing of the document.

Regards

Aashish Sinha

PS : reward points if helpful