Language:EN
Pages: 2
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
how the jaxp parser reads the xml depends upon the

How the jaxp parser reads the xml depends upon the input stream example

74 Chapter 3 • Processing XML Documents with DOM

File-based Source

If the XML is in the form of a file (say myfile.xml), the file can be directly passed to the the JAXP parser’s parse() method in the following form:

String urlName = "http://localhost:8080/examples/Temp.xml";

URL url = new URL(urlName);

The parse() method now uses XMLStream to parse the XML.

www.syngress.com

Figure 3.10 An XML file with an External Entity

When the first XML file is run, the entity ext1 is resolved and the output is as shown in Figure 3.12.

www.syngress.com

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Eshani Batta

PageId: ELIDB2826B