Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Is this a question? A statement? Just an advert?

If it is a question you'll have to be a lot more specific than that!
 

mrichmon

macrumors 6502a
Jun 17, 2003
873
3
handshakeit said:
How to call XML pages in Java.

Thanks.

http://www.handshakeit.com

What do you mean by "call XML pages"? XML is a standard way to represent structured data for storage in files or to exchange data. There is no active method or function embeded in XML so it is unclear what you mean by wanting to "call" an XML page.

At a guess, you mean that either you want to read in an XML file or you want to write out an XML file. Writing out an XML file is as simple as writing strings out to the file ensuring that you start with an xml header and produce the correct tags. Alternatively you could build up a DOM (Document Object Model) in memory and then write it out using one of the several XML DOM API implementations for Java.

To read an XML file most people use the SAX parser framework since this framework simplifies the task of parsing an XML file. Some distributions of Java include SAX in the default java libraries if not you can download xerces from the apache website which contains a SAX implementation.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.