Web Services FAQ Section Index | Page 24
There is not AN afficient way, it depends on different parameters, because efficiency is not only how fast you parse but also how easily you do it. Here are some examples and guidelines. Parsing...more
Why would XML be a better solution than a typical delimited text file for B2B (business to business applications), or representing data in general? I can take a flatfile, I can parse it and extract data, and then present that data in different ways using java such as HTML or WML. So, why would I want to complicate things with DTDs, parsers, and APIs needed to extract and display data?
There are many possible answers; XML can be used, as ASCII text files, in many ways. In fact it is also called the ASCII of the future (even if ASCII an XML define two different things). In B2B th...more
The xBeans project includes many examples of Java code that works on documents of any DTD. Such code requires you to essentially interpret the DOM representation of the document and not depend o...more
(From Egil Ølberg) Yes, the tool I use can be downloaded at: IBM AlphaWorks (From Benoit Xhenseval) Yes there are. It is also recommended to use some tools as the DTDs will evolve into X...more
Follow these steps for using WML instead of HTML from within JSP. 1) Make sure that the following is added to your MIME types file of your web server and restart it: File Extension = .wml MIME Ty...more
Could you describe the architecture behind jGuru.com: JSP, Servlets, database, servers, transactions etc...?
[Updated Nov 20, 2002 to remove old description and point at some articles. TJP] jGuru.com Case-Study. Little Nybbles of Development Wisdom.more
How does one decide when to use an attribute or an element for representing data? For example, it is possible represent an order as <ORDER ITEM="XXXX" QTY=10 UNIT="PC" />...more
(From Mathew Cobby) XML is purely "data about data". i.e. there is no concept of HOW something should look, it might not even have a visual representation. XML is about shoving data arou...more
XSLT is the part of XSL used to transform XML documents to HTML, PDF etc. or other XML documents. It can help you publish an XML document in a variety of formats. For instance, it can be used to c...more
There are many proposals for describing xml schema but none have reached the point that they are in products. A good point to start is the XML schema primer. The technical notes include: XML...more
How can I prevent text that contains "" or ">" from interfering with parsing. Are there other characters I need to be concerned about?
A simple XML "encode" should do the trick. /** * Escape the "special" characters as required for inclusion in XML elements * Replaces all incidences of * & wit...more
It seems that there is no commercial packages but however, there are many free ones. Here is a short list of these tools: http://www.lowagie.com/iText/ http://www.retep.org.uk/pdf/ http://www.et...more
According to Sun, it's impossible to write a DTD for JSP because it's not XML-complient. It cannot even be called 100% derived from SGML. But, you may use a non-validating XML parser to parse JSP ...more
XML transformation is the transformation of an XML document supporting one format (DTD) to another XML document of another format. One use of XML transformation is to generate an HTML presentatio...more
There are several places to find sample code including the Oracle technology site, the Xbeans project, IBM DeveloperWorks XML site and Sun's XML site. more