<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-19091162</id><updated>2011-04-21T11:57:52.634-07:00</updated><title type='text'>XML</title><subtitle type='html'>"Continuous effort - not strength or intelligence - is the key to unlocking our potential." ==&gt; Winston Churchill</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19091162.post-4343509686289708828</id><published>2008-04-09T00:06:00.000-07:00</published><updated>2008-04-09T00:21:31.409-07:00</updated><title type='text'>Accessing data using XPATH in a XML file</title><content type='html'>We can learn 2 different ways of creating document object (getXmlParser() , getXmlParsers() ) and accessing the data from xml file using XPATH.&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Error.xml&lt;br /&gt;&lt;/strong&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;EXCEPTION_ROOT&amp;gt;&lt;br /&gt;&amp;lt;EXCEPTION CODE="&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;BENEF_1000&lt;/span&gt;&lt;/strong&gt;"&amp;gt;&lt;br /&gt;&amp;lt;EXCEPTION_MESSAGE&amp;gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Beneficiary is not saved&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&amp;lt;/EXCEPTION_MESSAGE&amp;gt;&lt;br /&gt;&amp;lt;/EXCEPTION&amp;gt;&lt;br /&gt;&amp;lt;EXCEPTION CODE="&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;BENEF_1001&lt;/span&gt;&lt;/strong&gt;"&amp;gt;&lt;br /&gt;&amp;lt;EXCEPTION_MESSAGE&amp;gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;No records found&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&amp;lt;/EXCEPTION_MESSAGE&amp;gt;&lt;br /&gt;&amp;lt;/EXCEPTION&amp;gt;&lt;br /&gt;&amp;lt;/EXCEPTION_ROOT&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Error.xml&lt;br /&gt;&lt;/strong&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;import javax.xml.xpath.XPath;&lt;br /&gt;import javax.xml.xpath.XPathConstants;&lt;br /&gt;import javax.xml.xpath.XPathExpression;&lt;br /&gt;import javax.xml.xpath.XPathFactory;&lt;br /&gt;&lt;br /&gt;import org.apache.xerces.parsers.DOMParser;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;&lt;br /&gt;public class Error {&lt;br /&gt;&lt;br /&gt;private static Document doc;&lt;br /&gt;private static DOMParser objDOMParser = null;&lt;br /&gt;private static String fileName = "Error.xml";&lt;br /&gt;&lt;br /&gt;public static void main(String[] args){&lt;br /&gt;&lt;br /&gt;Error err1 = new Error();&lt;br /&gt;err1.getXmlParsers();&lt;br /&gt;&lt;br /&gt;err1.getSQLQuery("BENEF_1000");&lt;br /&gt;&lt;br /&gt;Error err2 = new Error();&lt;br /&gt;err2.getXmlParser();&lt;br /&gt;&lt;br /&gt;err2.getSQLQuery("BENEF_1001");&lt;br /&gt;}&lt;br /&gt;public void getXmlParsers() {&lt;br /&gt;DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;InputStream objInputStream = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;doc = builder.parse(objInputStream);&lt;br /&gt;}catch(ParserConfigurationException parserException) {&lt;br /&gt;}catch(SAXException saxException) {&lt;br /&gt;}catch(IOException ioException) {&lt;br /&gt;}catch(Exception exception){}&lt;br /&gt;}&lt;br /&gt;public void getXmlParser() {&lt;br /&gt;try {&lt;br /&gt;InputStream is = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;org.xml.sax.InputSource isrc = new org.xml.sax.InputSource(is);&lt;br /&gt;objDOMParser = new DOMParser();&lt;br /&gt;objDOMParser.parse(isrc);&lt;br /&gt;doc = objDOMParser.getDocument();&lt;br /&gt;} catch (Exception e) {&lt;br /&gt;System.err.println(e);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void getSQLQuery(String queryName) {&lt;br /&gt;String errorMessage = null;&lt;br /&gt;try{&lt;br /&gt;XPathFactory xpathFactory = XPathFactory.newInstance();&lt;br /&gt;XPath xpath = xpathFactory.newXPath();&lt;br /&gt;String expression ="EXCEPTION_ROOT/EXCEPTION[@CODE='"+queryName+"']/EXCEPTION_MESSAGE/text()";&lt;br /&gt;XPathExpression expr = xpath.compile(expression);&lt;br /&gt;NodeList nodes = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);&lt;br /&gt;errorMessage = nodes.item(0).getNodeValue();&lt;br /&gt;System.out.println(errorMessage);&lt;br /&gt;}&lt;br /&gt;catch(Exception ex) {&lt;br /&gt;ex.printStackTrace();&lt;br /&gt;System.out.println("......Error while parsing.....");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-4343509686289708828?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/4343509686289708828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=4343509686289708828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/4343509686289708828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/4343509686289708828'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2008/04/accessing-data-using-xpath-in-xml-file.html' title='Accessing data using XPATH in a XML file'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-6297602600919384501</id><published>2008-02-17T05:38:00.000-08:00</published><updated>2008-02-17T05:41:00.552-08:00</updated><title type='text'>Accessing an XML document to retrieve attribute values</title><content type='html'>&lt;strong&gt;&lt;span style="color:#990000;"&gt;Requirement:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;We have an XML file with a element and couple of attributes in it. We need to parse the XML file and retrieve only the attribute values.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;XML File (ABCSQLQueries):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ABCQUERIES&lt;br /&gt;TBUUSLIST_QUERY="SELECT TBUISUSKEY,TBUISUSNAME FROM OWN_ABC.TBUISUSLABELS"&lt;br /&gt;AVAILABLEWITH_QUERY="SELECT A.REQUESTAVAILABLEKEY, A.DISPLAY FROM OWN_ABC.REQUESTAVAILABLE A, OWN_ABC.REQUESTDETAILS&lt;br /&gt;B WHERE B.REQUESTDETAILSKEY = ? AND A.REQUESTAVAILABLEKEY = B.REQUESTAVAILABLEKEY"&lt;br /&gt;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;Code:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;import org.w3c.dom.NamedNodeMap;&lt;br /&gt;import org.w3c.dom.Attr;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;import org.w3c.dom.Node;&lt;br /&gt;import org.w3c.dom.DOMException;&lt;br /&gt;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class XmlReading {&lt;br /&gt;&lt;br /&gt;      Document doc;&lt;br /&gt;      Element element;&lt;br /&gt;      private static String fileName = "ABCSQLQueries.xml";&lt;br /&gt;&lt;br /&gt;      public static void main(String[] args) {&lt;br /&gt;            XmlReading xr = new XmlReading();&lt;br /&gt;//          xr.getXmlParser();&lt;br /&gt;            xr.getXmlParser(args);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;     &lt;br /&gt;      public void getXmlParser() {&lt;br /&gt;            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;            try {&lt;br /&gt;                  DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;                  InputStream objInputStream = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;                  doc = builder.parse(objInputStream);&lt;br /&gt;            }catch(ParserConfigurationException parserException) {&lt;br /&gt;            }catch(SAXException saxException) {&lt;br /&gt;            }catch(IOException ioException) {&lt;br /&gt;            }catch(Exception exception){}&lt;br /&gt;           &lt;br /&gt;            getAttributes();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      public void getXmlParser(String[] args) {&lt;br /&gt;            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;                  if(args.length != 1) {&lt;br /&gt;                        System.err.println("XML File Required");&lt;br /&gt;                  }&lt;br /&gt;&lt;br /&gt;            try {&lt;br /&gt;                  DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;                  doc = builder.parse(new File(args[0]));&lt;br /&gt;            }catch(ParserConfigurationException e1) {&lt;br /&gt;            }catch(SAXException e2) {&lt;br /&gt;            }catch(IOException e3) {&lt;br /&gt;            }&lt;br /&gt;            getAttributes();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public void getAttributes() {&lt;br /&gt;&lt;br /&gt;            // Retrive the entire Document from the Dom Tree&lt;br /&gt;            element = doc.getDocumentElement();&lt;br /&gt;            // Retrive the attribute list from document&lt;br /&gt;            NamedNodeMap attrs = element.getAttributes();&lt;br /&gt;&lt;br /&gt;            // Get number of attributes in the element&lt;br /&gt;          int numAttrs = attrs.getLength();&lt;br /&gt;          System.out.println("\n Number of Attribute:  " + numAttrs + "\n");&lt;br /&gt;&lt;br /&gt;          // Process each attribute&lt;br /&gt;&lt;br /&gt;            for (int i=0; i&amp;lt;numAttrs; i++) {&lt;br /&gt;                  Node node = attrs.item(i);&lt;br /&gt;                  // Get attribute name and value&lt;br /&gt;                  String attrName = node.getNodeName();&lt;br /&gt;                  String attrValue = node.getNodeValue();&lt;br /&gt;                  System.out.println("Attribute Name: " + attrName + "\nAttribute Value: " + attrValue + "\n");&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;XML parsing has been done in both ways like user can give the XML file as input through console as well as hard-code the XML file name directly in the parsing java file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-6297602600919384501?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/6297602600919384501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=6297602600919384501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/6297602600919384501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/6297602600919384501'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2008/02/accessing-xml-document-to-retrieve_17.html' title='Accessing an XML document to retrieve attribute values'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-2349399397693282936</id><published>2008-02-17T05:37:00.000-08:00</published><updated>2008-02-17T05:38:35.052-08:00</updated><title type='text'>Accessing an XML document to retrieve element values</title><content type='html'>&lt;strong&gt;&lt;span style="color:#990000;"&gt;Requirement:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;We have an XML file with couple of elements wrapped in a parent element. We need to parse the XML file and retrieve only the child element values.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;XML File (ABCSQLQueries):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ABCQUERIES&amp;gt;&lt;br /&gt;&amp;lt;TBUUSLIST_QUERY&amp;gt;&lt;br /&gt;SELECT TBUISUSKEY,TBUISUSNAME FROM OWN_ABC.TBUISUSLABELS&lt;br /&gt;&amp;lt;/TBUUSLIST_QUERY&amp;gt;&lt;br /&gt;&amp;lt;AVAILABLEWITH_QUERY&amp;gt;&lt;br /&gt;SELECT A.REQUESTAVAILABLEKEY, A.DISPLAY FROM OWN_ ABC.REQUESTAVAILABLE A, OWN_ ABC.REQUESTDETAILS B WHERE B.REQUESTDETAILSKEY = ? AND A.REQUESTAVAILABLEKEY = B.REQUESTAVAILABLEKEY&lt;br /&gt;&amp;lt;/AVAILABLEWITH_QUERY&amp;gt;&lt;br /&gt;&amp;lt;/ABCQUERIES&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;Code:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;import org.w3c.dom.NamedNodeMap;&lt;br /&gt;import org.w3c.dom.Attr;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;import org.w3c.dom.Node;&lt;br /&gt;import org.w3c.dom.DOMException;&lt;br /&gt;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;&lt;br /&gt;import java.io.File;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;&lt;br /&gt;public class XmlReading {&lt;br /&gt;&lt;br /&gt;      Document doc;&lt;br /&gt;      Element element;&lt;br /&gt;      private static String fileName = "ABCSQLQueries.xml";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      public static void main(String[] args) {&lt;br /&gt;            XmlReading xr = new XmlReading();&lt;br /&gt;            xr.getXmlParser();&lt;br /&gt;//          xr.getXmlParser(args);&lt;br /&gt;      }&lt;br /&gt;     &lt;br /&gt;      public void getXmlParser() {&lt;br /&gt;            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;            try {&lt;br /&gt;                  DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;                  InputStream objInputStream = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;                  doc = builder.parse(objInputStream);&lt;br /&gt;            }catch(ParserConfigurationException parserException) {&lt;br /&gt;            }catch(SAXException saxException) {&lt;br /&gt;            }catch(IOException ioException) {&lt;br /&gt;            }catch(Exception exception){}&lt;br /&gt;           &lt;br /&gt;            getAttributes();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public void getXmlParser(String[] args) {&lt;br /&gt;            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;                  if(args.length != 1) {&lt;br /&gt;                        System.err.println("XML File Required");&lt;br /&gt;                  }&lt;br /&gt;&lt;br /&gt;            try {&lt;br /&gt;                  DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;                  doc = builder.parse(new File(args[0]));&lt;br /&gt;            }catch(ParserConfigurationException e1) {&lt;br /&gt;            }catch(SAXException e2) {&lt;br /&gt;            }catch(IOException e3) {&lt;br /&gt;            }&lt;br /&gt;            getAttributes();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public void getAttributes() {&lt;br /&gt;&lt;br /&gt;            // Retrive the entire Document from the Dom Tree&lt;br /&gt;            element = doc.getDocumentElement();&lt;br /&gt;            String s1 = element.getTagName();&lt;br /&gt;            System.out.println("\nRoot Tag Name: " + s1);&lt;br /&gt;&lt;br /&gt;            // To get all the elements in a DOM Tree&lt;br /&gt;            NodeList nl1 = element.getElementsByTagName("*");&lt;br /&gt;            int i2 = nl1.getLength();&lt;br /&gt;            System.out.println("No of Elements: " + i2 + "\n");&lt;br /&gt;            for(int i=0; i&amp;lt;i2; i++) {&lt;br /&gt;                  Node node = nl1.item(i);&lt;br /&gt;&lt;br /&gt;                  System.out.println("Node Name: " + node.getNodeName());&lt;br /&gt;                  System.out.println("Node Value: " + node.getFirstChild().getNodeValue());&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;XML parsing has been done in both ways like user can give the XML file as input through console as well as hard-code the XML file name directly in the parsing java file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-2349399397693282936?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/2349399397693282936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=2349399397693282936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/2349399397693282936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/2349399397693282936'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2008/02/accessing-xml-document-to-retrieve.html' title='Accessing an XML document to retrieve element values'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-7608365057149780322</id><published>2008-02-17T05:34:00.000-08:00</published><updated>2008-02-17T05:36:36.242-08:00</updated><title type='text'>Accessing an XML document using DOM</title><content type='html'>&lt;strong&gt;&lt;span style="color:#990000;"&gt;Requirement:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;We have a completely organized XML file with SQL Queries. We need to parse the XML file and retrieve only the SQL Queries based on module code and sql query id.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;XML File (ABCSQLQueries):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;SQL_ROOT&amp;gt;&lt;br /&gt;            &amp;lt;MODULE CODE="REQUEST"&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="PAYMENTTERMS_QUERY"&amp;gt;&lt;br /&gt;                                    SELECT A.PAYMENTTERMSKEY, A.DISPLAY FROM OWN_ABC.PAYMENTTERMS A, OWN_ABC.REQUESTDETAILS B WHERE           &lt;br /&gt;                        B.REQUESTDETAILSKEY = ? AND A.PAYMENTTERMSKEY = B.PAYMENTTERMSKEY&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="REQUEST_UPDATE"&amp;gt;&lt;br /&gt;                                    update request query&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;            &amp;lt;/MODULE&amp;gt;&lt;br /&gt;            &amp;lt;MODULE CODE="BANK"&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="BANK_SELECT"&amp;gt;&lt;br /&gt;                                    Select bank query&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="BANK_UPDATE"&amp;gt;&lt;br /&gt;                                    update bank query&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;            &amp;lt;/MODULE&amp;gt;&lt;br /&gt;            &amp;lt;MODULE CODE="COUNTRY"&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="COUNTRY_SELECT"&amp;gt;&lt;br /&gt;                                    Select country query&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;                        &amp;lt;SQL_SEQMENT ID="COUNTRY_UPDATE"&amp;gt;&lt;br /&gt;                                    update country query&lt;br /&gt;                        &amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;            &amp;lt;/MODULE&amp;gt;&lt;br /&gt;&amp;lt;/SQL_ROOT&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;Code:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;import org.w3c.dom.NamedNodeMap;&lt;br /&gt;import org.w3c.dom.Attr;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;import org.w3c.dom.Node;&lt;br /&gt;import org.w3c.dom.DOMException;&lt;br /&gt;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;&lt;br /&gt;public class XMLParsing {&lt;br /&gt;&lt;br /&gt;      static Document doc;&lt;br /&gt;      static Element element;&lt;br /&gt;      private static String fileName = "ABCSQLQueries.xml";&lt;br /&gt;     &lt;br /&gt;      public static void main(String[] args) {&lt;br /&gt;            XMLParsing xr = new XMLParsing();&lt;br /&gt;            xr.getXmlParser();&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public void getXmlParser() {&lt;br /&gt;            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;            try {&lt;br /&gt;                  DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;                  InputStream is = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;                  doc = builder.parse(is);&lt;br /&gt;            }catch(ParserConfigurationException parserException) {&lt;br /&gt;            }catch(SAXException saxException) {&lt;br /&gt;            }catch(IOException ioException) {&lt;br /&gt;            }catch(Exception exception){}&lt;br /&gt;            getElements("REQUEST", "PAYMENTTERMS_QUERY");&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      public static String getElements(String moduleName, String queryName) {&lt;br /&gt;                 &lt;br /&gt;            String gtemQuery = null;&lt;br /&gt;            // Retrive the entire Document from the Dom Tree&lt;br /&gt;            element = doc.getDocumentElement();&lt;br /&gt;            String s1 = element.getTagName();&lt;br /&gt;            System.out.println("\nRoot Tag Name: " + s1);&lt;br /&gt;&lt;br /&gt;            NodeList parentNodeList = element.getElementsByTagName("MODULE");&lt;br /&gt;&lt;br /&gt;            for(int parentNode = 0; parentNode &amp;lt; parentNodeList.getLength(); parentNode++) {&lt;br /&gt;                  Node queryNode = parentNodeList.item(parentNode);&lt;br /&gt;                       &lt;br /&gt;                  String attributeValue = getAttributes(queryNode);&lt;br /&gt;                       &lt;br /&gt;                  if(queryNode.getNodeName().equals("MODULE") &amp;amp;&amp;amp; attributeValue.equals(moduleName)) {&lt;br /&gt;                       &lt;br /&gt;                        NodeList childNodeList = queryNode.getChildNodes();&lt;br /&gt;&lt;br /&gt;                        for(int i=0; i&amp;lt;childNodeList.getLength(); i++) {&lt;br /&gt;                              String childAttributeValue = null;&lt;br /&gt;                             &lt;br /&gt;                              Node childNode = childNodeList.item(i);&lt;br /&gt;                                   &lt;br /&gt;                              if(childNode.getNodeType() == Node.ELEMENT_NODE){&lt;br /&gt;                                    childAttributeValue = getAttributes(childNode);&lt;br /&gt;                                   &lt;br /&gt;                                    if(childAttributeValue.trim().equals(queryName)){&lt;br /&gt;                                          System.out.println("Query: " + childNode.getTextContent().trim());&lt;br /&gt;                                          gtemQuery = childNode.getTextContent().trim();&lt;br /&gt;                                          break;&lt;br /&gt;                                    }&lt;br /&gt;                              }&lt;br /&gt;                        }&lt;br /&gt;                  }&lt;br /&gt;            }&lt;br /&gt;            return gtemQuery;&lt;br /&gt;      }&lt;br /&gt;           &lt;br /&gt;      public static String getAttributes(Node firstLevelNode) {&lt;br /&gt;           &lt;br /&gt;            String attributeValue = null;&lt;br /&gt;                 &lt;br /&gt;            NamedNodeMap nodeMap = firstLevelNode.getAttributes();&lt;br /&gt;&lt;br /&gt;            for (int i=0; i&amp;lt;nodeMap.getLength(); i++) {&lt;br /&gt;                  Node attributeNode = nodeMap.item(i);&lt;br /&gt;                  // Get attribute value&lt;br /&gt;                  attributeValue = attributeNode.getNodeValue();&lt;br /&gt;                  System.out.println("Attribute Value: " + attributeValue );&lt;br /&gt;            }&lt;br /&gt;            return attributeValue;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-7608365057149780322?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/7608365057149780322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=7608365057149780322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/7608365057149780322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/7608365057149780322'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2008/02/accessing-xml-document-using-dom.html' title='Accessing an XML document using DOM'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-6354661381462891325</id><published>2008-02-17T05:31:00.000-08:00</published><updated>2008-02-17T05:34:24.154-08:00</updated><title type='text'>Accessing an XML document using XPATH</title><content type='html'>&lt;strong&gt;&lt;span style="color:#990000;"&gt;Requirement:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;We have a completely organized XML file with SQL Queries. We need to parse the XML file and retrieve only the SQL Queries based on module code and sql query id.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;XML File (ABCSQLQueries):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;SQL_ROOT&amp;gt;&lt;br /&gt;&amp;lt;MODULE CODE="REQUEST"&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="PAYMENTTERMS_QUERY"&amp;gt;&lt;br /&gt;SELECT A.PAYMENTTERMSKEY, A.DISPLAY FROM OWN_ABC.PAYMENTTERMS A, OWN_ABC.REQUESTDETAILS B WHERE&lt;br /&gt;B.REQUESTDETAILSKEY = ? AND A.PAYMENTTERMSKEY = B.PAYMENTTERMSKEY&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="REQUEST_UPDATE"&amp;gt;&lt;br /&gt;update request query&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;/MODULE&amp;gt;&lt;br /&gt;&amp;lt;MODULE CODE="BANK"&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="BANK_SELECT"&amp;gt;&lt;br /&gt;Select bank query&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="BANK_UPDATE"&amp;gt;&lt;br /&gt;update bank query&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;/MODULE&amp;gt;&lt;br /&gt;&amp;lt;MODULE CODE="COUNTRY"&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="COUNTRY_SELECT"&amp;gt;&lt;br /&gt;Select country query&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;SQL_SEQMENT ID="COUNTRY_UPDATE"&amp;gt;&lt;br /&gt;update country query&lt;br /&gt;&amp;lt;/SQL_SEQMENT&amp;gt;&lt;br /&gt;&amp;lt;/MODULE&amp;gt;&lt;br /&gt;&amp;lt;/SQL_ROOT&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Code:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;&lt;br /&gt;import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;import javax.xml.xpath.XPath;&lt;br /&gt;import javax.xml.xpath.XPathConstants;&lt;br /&gt;import javax.xml.xpath.XPathExpression;&lt;br /&gt;import javax.xml.xpath.XPathFactory;&lt;br /&gt;&lt;br /&gt;import org.w3c.dom.Document;&lt;br /&gt;import org.w3c.dom.Element;&lt;br /&gt;import org.w3c.dom.NodeList;&lt;br /&gt;&lt;br /&gt;import org.xml.sax.SAXException;&lt;br /&gt;&lt;br /&gt;public class ABCSQLLoader {&lt;br /&gt;&lt;br /&gt;static Document doc;&lt;br /&gt;static Element element;&lt;br /&gt;// Declare it in constants file and use it instead of hard-coding like this&lt;br /&gt;private static String fileName = "ABCSQLQueries.xml";&lt;br /&gt;&lt;br /&gt;Uncomment only for execution through console mode.&lt;br /&gt;/*&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;XMLParser xr = new XMLParser();&lt;br /&gt;xr.getXmlParser();&lt;br /&gt;}&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;public void getXmlParser() {&lt;br /&gt;DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;DocumentBuilder builder = factory.newDocumentBuilder();&lt;br /&gt;InputStream objInputStream = this.getClass().getResourceAsStream(fileName);&lt;br /&gt;doc = builder.parse(objInputStream);&lt;br /&gt;}catch(ParserConfigurationException parserException) {&lt;br /&gt;}catch(SAXException saxException) {&lt;br /&gt;}catch(IOException ioException) {&lt;br /&gt;}catch(Exception exception){}&lt;br /&gt;&lt;br /&gt;Uncomment only for execution through console mode.&lt;br /&gt;//getSQLQuery("REQUEST", "PAYMENTTERMS_QUERY");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static String getSQLQuery (String moduleName, String queryName) {&lt;br /&gt;String sqlQuery = null;&lt;br /&gt;try{&lt;br /&gt;XPathFactory xpathFactory = XPathFactory.newInstance();&lt;br /&gt;XPath xpath = xpathFactory.newXPath();&lt;br /&gt;String expression ="SQL_ROOT/MODULE[@CODE='"+moduleName+"']/SQL_SEQMENT[@ID='"+queryName+"']/text()";&lt;br /&gt;XPathExpression expr = xpath.compile(expression);&lt;br /&gt;NodeList nodes = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);&lt;br /&gt;sqlQuery = nodes.item(0).getNodeValue();&lt;br /&gt;System.out.println("Query: " + sqlQuery);&lt;br /&gt;}&lt;br /&gt;catch(Exception ex) {&lt;br /&gt;System.out.println("......Error while parsing.....");&lt;br /&gt;}&lt;br /&gt;return sqlQuery;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;How to apply this whole XML-SQL concept in a J2EE application?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Step-I:&lt;/span&gt;&lt;/strong&gt; Load the XMLParser (ABCSQLLoader) while the J2EE web application starts in the server through a servlet’s init method.&lt;br /&gt;&lt;br /&gt;public class PopulateApplicationDataServlet extends HttpServlet {&lt;br /&gt;&lt;br /&gt;public void init(ServletConfig config) throws ServletException {&lt;br /&gt;XMLParser parsing = new XMLParser();&lt;br /&gt;parsing.getXmlParser();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Step-II:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Once the xml parser parse’s the XML file, give the module name and query name as parameters through normal java method call from the application DAO classes.&lt;br /&gt;&lt;br /&gt;objResultSet = objStatement.executeQuery(&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;ABCSQLLoader.getSQLQuery(&lt;br /&gt;"REQUEST", " PAYMENTTERMS_QUERY ")&lt;/span&gt;&lt;/strong&gt;);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-6354661381462891325?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/6354661381462891325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=6354661381462891325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/6354661381462891325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/6354661381462891325'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2008/02/access-xml-document-using-xpath.html' title='Accessing an XML document using XPATH'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114594399767744340</id><published>2006-04-24T22:45:00.000-07:00</published><updated>2006-04-24T22:46:37.686-07:00</updated><title type='text'>XQuery Tutorial</title><content type='html'>&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=39&amp;amp;t=001068"&gt;&lt;span style="font-family: georgia; font-weight: bold; color: rgb(51, 51, 255);"&gt;XQuery Tutorial&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114594399767744340?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114594399767744340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114594399767744340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114594399767744340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114594399767744340'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/04/xquery-tutorial.html' title='XQuery Tutorial'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114362598694512964</id><published>2006-03-29T01:44:00.000-08:00</published><updated>2006-03-29T01:53:07.023-08:00</updated><title type='text'>How to restrict null values in XML tags</title><content type='html'>&lt;span style="font-family: georgia;"&gt;The following  declartion will restrict the tag values to only a to z, A to Z and 1 to 9 and no other values can be entered into it.&lt;br /&gt;&lt;br /&gt;&amp;lt;element name="first"&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;                &amp;lt;simpleType&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;                    &amp;lt;restriction base="string"&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;                        &amp;lt;pattern value="([a-zA-Z1-9])+"/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;                    &amp;lt;/restriction&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;                &amp;lt;/simpleType&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;/element&amp;gt;&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114362598694512964?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114362598694512964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114362598694512964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114362598694512964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114362598694512964'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/how-to-restrict-null-values-in-xml.html' title='How to restrict null values in XML tags'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114360821559707125</id><published>2006-03-28T20:52:00.000-08:00</published><updated>2006-03-28T20:56:55.606-08:00</updated><title type='text'>XML Document To Schema</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: georgia;"&gt;The following article, &lt;span style="font-weight: bold;"&gt;"Validation by Instance",&lt;/span&gt; explores how one can translate an &lt;span style="font-weight: bold;"&gt;XML document&lt;/span&gt; into a &lt;span style="font-weight: bold;"&gt;Document Type Definition (DTD)&lt;/span&gt;, a RELAX NG schema, and then into an &lt;span style="font-weight: bold;"&gt;W3C XML Schema (WXS) schema&lt;/span&gt;.  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;You can also use Stylus Studio Professional Edition (or) &lt;/span&gt;&lt;span style="font-family: georgia;"&gt;Stylus Studio Enterprise Edition XML Editor which integrates &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;XML instance Document to XML Schema&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;XML &lt;/span&gt;&lt;span style="font-family: georgia;"&gt;instance &lt;/span&gt;&lt;span style="font-family: georgia;"&gt;Document to DTD Schema&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114360821559707125?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114360821559707125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114360821559707125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114360821559707125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114360821559707125'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-document-to-schema.html' title='XML Document To Schema'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114352919295478580</id><published>2006-03-27T22:58:00.000-08:00</published><updated>2006-03-27T22:59:52.953-08:00</updated><title type='text'>Articles</title><content type='html'>&lt;span style="font-family: georgia;"&gt;&lt;a href="http://www.oreillynet.com/pub/au/1723"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt; is a list of articles by &lt;span style="font-weight: bold;"&gt;Deepak Vohra&lt;/span&gt;. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114352919295478580?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114352919295478580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114352919295478580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352919295478580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352919295478580'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/articles.html' title='Articles'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114352870906205356</id><published>2006-03-27T22:48:00.000-08:00</published><updated>2006-03-27T22:51:49.063-08:00</updated><title type='text'>XPath</title><content type='html'>&lt;a href="http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html"&gt;&lt;span style="font-family: georgia; font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt;  is a XPath Tutorial from &lt;span style="font-weight: bold;"&gt;OnJava.com&lt;/span&gt; by &lt;span style="font-weight: bold;"&gt;Deepak Vohra.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114352870906205356?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114352870906205356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114352870906205356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352870906205356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352870906205356'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xpath.html' title='XPath'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114352764615886065</id><published>2006-03-27T22:33:00.000-08:00</published><updated>2006-03-27T22:34:06.156-08:00</updated><title type='text'>XML Book</title><content type='html'>&lt;span style="font-family: georgia;"&gt;&lt;a href="http://cafeconleche.org/books/xmljava/"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Processing XML with Java&lt;/span&gt;&lt;/a&gt; by &lt;span style="font-weight: bold;"&gt;Elliotte Rusty Harold&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-family: georgia;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114352764615886065?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114352764615886065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114352764615886065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352764615886065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352764615886065'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-book.html' title='XML Book'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114352727567785339</id><published>2006-03-27T22:21:00.000-08:00</published><updated>2006-03-27T22:31:34.943-08:00</updated><title type='text'>API [DOM, SAX, JAXP] Parsers[Crimson, Xerces]  - How to relate all these</title><content type='html'>&lt;a style="font-family: georgia;" href="http://cafeconleche.org/books/xmljava/chapters/ch05s02.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt; is a link from &lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Processing XML with Java&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; by &lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Elliotte Rusty Harold&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; which explains clearly about all the details of&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;1. What a parser is&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;2. what are the different API's with which you can access XML Document&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;3. &lt;/span&gt;&lt;span style="font-family:georgia;"&gt;What are the different parsers&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; &lt;/span&gt;&lt;span style="font-family:georgia;"&gt;available to parse an XML&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; Document&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114352727567785339?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114352727567785339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114352727567785339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352727567785339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114352727567785339'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/api-dom-sax-jaxp-parserscrimson-xerces.html' title='API [DOM, SAX, JAXP] Parsers[Crimson, Xerces]  - How to relate all these'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114345595705721330</id><published>2006-03-27T02:38:00.000-08:00</published><updated>2006-03-27T02:39:17.056-08:00</updated><title type='text'>JAXP(SAX &amp; DOM) vs JAXB</title><content type='html'>&lt;span style="font-family: georgia;"&gt;Find the discussion about it &lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=005489"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114345595705721330?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114345595705721330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114345595705721330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114345595705721330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114345595705721330'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/jaxpsax-dom-vs-jaxb.html' title='JAXP(SAX &amp; DOM) vs JAXB'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114344643118907851</id><published>2006-03-26T23:59:00.000-08:00</published><updated>2006-03-27T21:04:14.866-08:00</updated><title type='text'>Web Services Acronyms</title><content type='html'>&lt;span style="font-family:georgia;"&gt;Here is a list of acronyms used in Web Services.&lt;br /&gt;&lt;br /&gt;XML: Extensible Markup Language&lt;br /&gt;SOAP: Simple Object Access Protocol&lt;br /&gt;UDDI: Universal Description, Discovery and Integration&lt;br /&gt;ebXML: Electronic Business Extensible Markup Language&lt;br /&gt;WSDL: Web Services Description Language&lt;br /&gt;JAXM: Java API for XML Messaging&lt;br /&gt;JAX-RPC: Java API for Remote Procedure Call&lt;br /&gt;JAXR: Java API for XML Registry&lt;br /&gt;JAXP: Java API for XML Processing&lt;br /&gt;JAXB: Java Architecture for XML Binding&lt;br /&gt;SAAJ: SOAP with Attachments API for JavaJava&lt;br /&gt;WSDP: Java Web Services Developer Pack&lt;br /&gt;WS-I: Web Services Interoperability Organization&lt;br /&gt;W3C: World Wide Web Consortium&lt;br /&gt;OASIS: Organization for the Advancement of Structured Information Standards&lt;br /&gt;JCP: Java Community Process&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114344643118907851?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114344643118907851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114344643118907851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344643118907851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344643118907851'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/web-services-acronyms.html' title='Web Services Acronyms'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114344400926548571</id><published>2006-03-26T23:09:00.000-08:00</published><updated>2006-03-26T23:28:35.673-08:00</updated><title type='text'>Java Architecture for XML Binding(JAXB)</title><content type='html'>&lt;span style="font-family:georgia;"&gt;&lt;a style="font-family: georgia;" href="http://www.onjava.com/pub/a/onjava/2004/12/15/jaxb.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;JAXB Basic Tutorial&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: georgia;" href="http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;What is JAXB.&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: georgia;" href="http://java.sun.com/webservices/jaxb/about.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;About JAXB.&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: georgia;" href="http://www.xml.com/pub/a/2003/01/08/jaxb-api.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;JAXB API&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java.sun.com/webservices/jaxb/faq.html"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;JAXB FAQ&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114344400926548571?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114344400926548571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114344400926548571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344400926548571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344400926548571'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/java-architecture-for-xml-bindingjaxb.html' title='Java Architecture for XML Binding(JAXB)'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114344212069092070</id><published>2006-03-26T22:36:00.000-08:00</published><updated>2006-03-27T21:21:07.203-08:00</updated><title type='text'>XML - Java Mapping Tools</title><content type='html'>&lt;span style="font-family:georgia;"&gt;Best practices for creating &lt;span style="font-weight: bold;"&gt;java classes from xml schema (.xsd)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;1. Apache XMLBeans&lt;br /&gt;2. &lt;/span&gt;&lt;span style="font-family:georgia;"&gt;(Java Architecture for XML Binding)JAXB/JaxMe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;XML files to a Javabean&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;There are many tools out there which can be used to get the work done.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;1. Jakarta Commons Digester.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;2. Castor&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;3. XStream&lt;br /&gt;&lt;br /&gt;While convert &lt;span style="font-weight: bold;"&gt;XML&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;Java objects&lt;/span&gt; when do you prefer &lt;span style="font-weight: bold;"&gt;Digestor&lt;/span&gt; over&lt;span style="font-weight: bold;"&gt; JAXB&lt;/span&gt;?&lt;br /&gt;&lt;br /&gt;You can learn all about it &lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=005600"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114344212069092070?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114344212069092070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114344212069092070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344212069092070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114344212069092070'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-java-mapping-tools.html' title='XML - Java Mapping Tools'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114326490584878765</id><published>2006-03-24T21:23:00.000-08:00</published><updated>2006-03-24T21:35:05.863-08:00</updated><title type='text'>Whats the difference in getElementsByTagName(String str)</title><content type='html'>&lt;span style="font-family: georgia;"&gt;&lt;span style="font-weight: bold;"&gt;Whats the difference between &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;getElementsByTagName(String str) of &lt;span style="font-weight: bold;"&gt;Document object&lt;/span&gt; and&lt;br /&gt;getElementsByTagName(String str) of &lt;span style="font-weight: bold;"&gt;Element object.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Sample XML Document.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;scenariotemplate&amp;gt;&lt;br /&gt;&lt;/span&gt;&amp;#160;&amp;#160;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;layout name="intro,quest,conc" width ="1" height="3"&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;textElement name="Introduction" position="1"&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;/textElement&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;listElement name="Questions" position="2"&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;/listElement&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;textElement name="Conclusion" position="3"&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;/textElement&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&lt;span style="font-family: georgia;"&gt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;/layout&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;/scenariotemplate&lt;/span&gt;&lt;span style="font-family: georgia;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A sample Program:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    Document doc = null;&lt;br /&gt;    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();&lt;br /&gt;   &lt;br /&gt;    try {&lt;br /&gt;        DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();&lt;br /&gt;        doc = docBuilder.parse(new File("component.xml"));&lt;br /&gt;    }catch(ParserConfigurationException e1) {&lt;br /&gt;    }catch(SAXException e2) {&lt;br /&gt;    }catch(IOException e3) {&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/* Scenario I */&lt;/span&gt;&lt;br /&gt;    Element RootElement = doc.getDocumentElement();  &lt;br /&gt;    NodeList templates = RootElement.getElementsByTagName("*");&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/* Scenario II */&lt;/span&gt;&lt;br /&gt;    NodeList templates = doc.getElementsByTagName("*");&lt;br /&gt;&lt;br /&gt;    int totaltemplates = templates.getLength();&lt;br /&gt;    System.out.println("Total no of child elements : " + totaltemplates);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In Scenario I - OUTPUT will be&lt;/span&gt;&lt;br /&gt;Total no of child elements : 4&lt;br /&gt;This is excluding the ROOT element.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In Scenario II - OUTPUT will be&lt;/span&gt;&lt;br /&gt;Total no of child elements : 5&lt;br /&gt;This is including the ROOT element.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114326490584878765?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114326490584878765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114326490584878765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114326490584878765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114326490584878765'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/whats-difference-in.html' title='Whats the difference in getElementsByTagName(String str)'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114310664337566868</id><published>2006-03-23T01:36:00.000-08:00</published><updated>2006-03-23T01:37:23.376-08:00</updated><title type='text'>XML Certification Worth?</title><content type='html'>&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001642"&gt;&lt;span style="font-family: georgia; font-weight: bold; color: rgb(51, 51, 255);"&gt;XML Certification is worth for future.&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114310664337566868?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114310664337566868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114310664337566868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114310664337566868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114310664337566868'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-certification-worth.html' title='XML Certification Worth?'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114310648166420498</id><published>2006-03-23T01:28:00.000-08:00</published><updated>2006-03-23T01:34:41.696-08:00</updated><title type='text'>SAX Tutorial</title><content type='html'>&lt;span style="font-family: georgia;"&gt;&lt;a href="http://www-128.ibm.com/developerworks/edu/x-dw-xusax-i.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;SAX - IBM Tutorial&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;a style="font-family: georgia;" href="http://www-128.ibm.com/developerworks/edu/x-dw-xusax-i.html"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;.&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: georgia;" href="http://developerlife.com/saxtutorial1/file.pdf"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;SAX Tutorial - DeveloperLife.com - Nazmul  Idris&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114310648166420498?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114310648166420498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114310648166420498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114310648166420498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114310648166420498'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/sax-tutorial.html' title='SAX Tutorial'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114259343048720999</id><published>2006-03-17T03:01:00.000-08:00</published><updated>2006-03-17T03:03:50.500-08:00</updated><title type='text'>XML Introduction</title><content type='html'>&lt;a style="color: rgb(51, 51, 255); font-family: georgia;" href="http://www-128.ibm.com/developerworks/edu/x-dw-xmlintro-i.html"&gt;&lt;span style="font-weight: bold;"&gt;XML Introduction&lt;/span&gt;&lt;/a&gt;&lt;span style="color: rgb(0, 0, 0); font-family: georgia;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;- from XML Evangelist, IBM&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114259343048720999?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114259343048720999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114259343048720999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114259343048720999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114259343048720999'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-introduction.html' title='XML Introduction'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114241905977076023</id><published>2006-03-15T02:32:00.000-08:00</published><updated>2006-03-15T02:37:39.770-08:00</updated><title type='text'>How to specify an attribute for a child element.</title><content type='html'>&lt;a style="color: rgb(51, 51, 255);" href="http://www.geocities.com/priya_engi/attribute-for-child-elements.txt"&gt;&lt;span style="font-family: georgia; font-weight: bold;"&gt;Attribute declarations for child Elements&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; in XML Schema&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114241905977076023?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114241905977076023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114241905977076023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114241905977076023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114241905977076023'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/how-to-specify-attribute-for-child.html' title='How to specify an attribute for a child element.'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114241849987011248</id><published>2006-03-15T02:27:00.000-08:00</published><updated>2006-03-27T21:24:37.720-08:00</updated><title type='text'>XML Tip</title><content type='html'>&lt;span style="font-family:georgia;"&gt;An element cannot contain both &lt;complextype&gt; &lt;/complextype&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-weight: bold;"&gt;simpleType&lt;/span&gt; &lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;complextype&gt;as well as &lt;/complextype&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;complexType&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;complextype&gt;&lt;simpletype&gt;. If you use both then you end up will the following error&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);"&gt;The content of an element information item does not match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)&lt;/span&gt;&lt;/simpletype&gt;&lt;/complextype&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114241849987011248?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114241849987011248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114241849987011248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114241849987011248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114241849987011248'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-tip.html' title='XML Tip'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114240606572744818</id><published>2006-03-14T22:59:00.000-08:00</published><updated>2006-03-27T21:37:12.510-08:00</updated><title type='text'>XML Schema Tutorial</title><content type='html'>&lt;a style="color: rgb(51, 51, 255); font-family: georgia;" href="http://www.xml.com/pub/a/2000/11/29/schemas/part1.html?page=1"&gt;&lt;span style="font-weight: bold;"&gt;XML.com - XML Schema Tutorial&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=004775"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt; is link to a problem and relevant solution for &lt;span style="font-weight: bold;"&gt;Schema&lt;/span&gt; definition.&lt;br /&gt;&lt;span style="font-family:georgia;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114240606572744818?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114240606572744818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114240606572744818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114240606572744818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114240606572744818'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-schema-tutorial.html' title='XML Schema Tutorial'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114223283292887123</id><published>2006-03-12T22:52:00.000-08:00</published><updated>2006-03-27T21:18:48.006-08:00</updated><title type='text'>DOM Parser</title><content type='html'>&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;a style="font-family: georgia;" href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=000881"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: georgia; font-weight: bold; color: rgb(51, 51, 255);"&gt; &lt;/span&gt;&lt;span style="font-family: georgia; color: rgb(0, 0, 0);"&gt; is a link that discuss about the advantages and disadvantages of DOM parser.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114223283292887123?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114223283292887123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114223283292887123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114223283292887123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114223283292887123'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/dom-parser.html' title='DOM Parser'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114190768925536689</id><published>2006-03-09T03:19:00.000-08:00</published><updated>2006-03-09T04:36:28.850-08:00</updated><title type='text'>Local elements and targetNamespace</title><content type='html'>&lt;span style="font-weight: bold;font-family:georgia;" &gt;XML Schema&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;?xml version="1.0"?&gt;&lt;br /&gt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&lt;br /&gt;targetNamespace="http://atw.co.in/vis" xmlns:tars="http://atw.co.in/vis"&lt;br /&gt;&gt;&lt;br /&gt;&lt;br /&gt;xs:attributeGroup name="Agroup"&gt;&lt;br /&gt;   xs:attribute name="title" type="xs:string" /&gt;&lt;br /&gt;/xs:attributeGroup&gt;&lt;br /&gt;&lt;br /&gt;xs:complexType name="NameType" &gt;&lt;br /&gt;   xs:sequence&gt;&lt;br /&gt;       xs:element name="first" type="xs:string" default="Hi"/&gt;&lt;br /&gt;       xs:element name="last" type="xs:string" default="nu"/&gt;&lt;br /&gt;   /xs:sequence&gt;&lt;br /&gt;   xs:attributeGroup ref="tars:Agroup" /&gt;&lt;br /&gt;/xs:complexType&gt;&lt;br /&gt;&lt;br /&gt;xs:element name="name" type="tars:NameType"/&gt;&lt;br /&gt;/xs:schema&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- Using a global Type --&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;XML Document&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;?xml version="1.0"?&gt;&lt;br /&gt;vis:name&lt;br /&gt;xmlns:vis="http://atw.co.in/vis"&lt;br /&gt;xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&lt;br /&gt;xsi:schemaLocation="http://atw.co.in/vis name2.xsd"&lt;br /&gt;title="Mr."&gt;&lt;br /&gt;vis:first&gt;&lt;br /&gt;vis:last&gt;&lt;br /&gt;/vis:name&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);"&gt;Error:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Element 'first' should be un-qualified&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Element 'last' should be un-qualified&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Reason for Error:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Look at your XML Schema document and the schema element&lt;span style="font-size:100%;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt; &lt;span style="font-family:georgia;"&gt;&lt;span style="font-weight: bold;"&gt;elementFormDefault&lt;/span&gt; attribute is missing. &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Verdana,Arial;font-size:85%;"  &gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:georgia;"&gt;Hence, this attribute takes the default value, which is &lt;/span&gt;&lt;i style="font-family: georgia; font-weight: bold;"&gt;unqualified&lt;/i&gt;&lt;span style="font-family:georgia;"&gt;. Because of that, the &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;local elements are not in the targetNamespace.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;&lt;br /&gt;How to recify these errors?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Replace&lt;br /&gt;&lt;br /&gt;-------------------------&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;vis:first&gt;&lt;br /&gt;vis:last&gt;&lt;br /&gt;--------------------------&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;With&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;-------------------------&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;first&gt;&lt;br /&gt;last&gt;&lt;br /&gt;--------------------------&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;OR include&lt;br /&gt;elementFormDefault&lt;/span&gt; attribute with &lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;"qualified"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; value in schema element.&lt;/span&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;XML Schema&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;?xml version="1.0"?&gt;&lt;br /&gt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&lt;br /&gt;targetNamespace="http://atw.co.in/vis" xmlns:tars="http://atw.co.in/vis"&lt;br /&gt;elementFormDefault="qualified"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;&lt;/span&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;strong&gt;Why do the local elements do not come under targetNamespace when their parent element is?&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;That's by definition of the XML Schema recommentations.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114190768925536689?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114190768925536689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114190768925536689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114190768925536689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114190768925536689'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/local-elements-and-targetnamespace.html' title='Local elements and targetNamespace'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114190050723175102</id><published>2006-03-09T02:33:00.000-08:00</published><updated>2006-03-27T21:29:56.760-08:00</updated><title type='text'>XML Namespaces FAQ</title><content type='html'>&lt;span style="color: rgb(51, 51, 255);font-family:georgia;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Here you go&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;font-family:georgia;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www.rpbourret.com/xml/NamespacesFAQ.htm"&gt;XML Namespace&lt;/a&gt;&lt;/span&gt;&lt;a style="color: rgb(51, 51, 255); font-family: georgia; font-weight: bold;" href="http://www.rpbourret.com/xml/NamespacesFAQ.htm"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;s &lt;/span&gt;FAQ&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=004462"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; is another link that has discussion about namespaces.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114190050723175102?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114190050723175102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114190050723175102' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114190050723175102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114190050723175102'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/xml-namespaces-faq.html' title='XML Namespaces FAQ'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114189594192574800</id><published>2006-03-09T01:18:00.000-08:00</published><updated>2006-03-14T22:23:51.330-08:00</updated><title type='text'>Element Type - Declaration</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;span style="font-family:georgia;"&gt;I have an XML document, with one structure nested inside another - e.g "manager" element nested inside a "company":&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote  style="font-family:georgia;"&gt;&lt;span style="font-size:100%;"&gt;code:&lt;/span&gt;&lt;hr style="height: 3px;"&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;company&gt;&lt;br /&gt;manager&gt;&lt;br /&gt;name&gt; john /name&gt;&lt;br /&gt;/manager&gt;&lt;br /&gt;/company&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;hr style="height: 3px;"&gt;&lt;/blockquote&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;I'm trying to create a schema (xsd) for this.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;Note my "manager" needs to be defined outside the scope of "company", so that it's re-usable (i.e. manager may be nested inside other structures, not just "company"). &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;br /&gt;I get the impression there are 2 ways to do it:&lt;br /&gt;&lt;br /&gt;1. Define "manager" as *element*, then let "company" declare a *ref* to it&lt;br /&gt;&lt;/span&gt;&lt;blockquote  style="font-family:georgia;"&gt;&lt;span style="font-size:100%;"&gt;code:&lt;/span&gt;&lt;hr style="height: 3px;"&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;schema ...&gt;&lt;br /&gt;element name="company"&gt;&lt;br /&gt;complexType&gt;&lt;br /&gt;sequence&gt;&lt;br /&gt;element ref="manager"/&gt;&lt;br /&gt;/sequence&gt;&lt;br /&gt;/complexType&gt;&lt;br /&gt;/element&gt;&lt;br /&gt;element name="manager"&gt;&lt;br /&gt;complexType&gt;&lt;br /&gt;sequence&gt;&lt;br /&gt;element name="name" type="string"/&gt;&lt;br /&gt;/sequence&gt;&lt;br /&gt;/complexType&gt;&lt;br /&gt;/element&gt;&lt;br /&gt;/schema&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;hr style="height: 3px;"&gt;&lt;/blockquote&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;2. Define "manager" as  *complex type*&lt;br /&gt;&lt;/span&gt;&lt;blockquote  style="font-family:georgia;"&gt;&lt;span style="font-size:100%;"&gt;code:&lt;/span&gt;&lt;hr style="height: 3px;"&gt;&lt;pre&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;schema ...&gt;&lt;br /&gt;element name="company"&gt;&lt;br /&gt;complexType&gt;&lt;br /&gt;sequence&gt;&lt;br /&gt;element name="manager" type="managerType"/&gt;&lt;br /&gt;/sequence&gt;&lt;br /&gt;/complexType&gt;&lt;br /&gt;/element&gt;&lt;br /&gt;complexType name="managerType"&gt;&lt;br /&gt;sequence&gt;&lt;br /&gt;element name="name" type="string"/&gt;&lt;br /&gt;/sequence&gt;&lt;br /&gt;/complexType&gt;&lt;br /&gt;/schema&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;hr style="height: 3px;"&gt;&lt;/blockquote&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:Verdana,Arial;font-size:100%;"  &gt;Could anyone please tell what's the difference between the 2 approaches ? Why does XML define 2 syntaxes to achieve the same goal ?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Answer:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;First XSD(Schema) is called &lt;span style="font-weight: bold;"&gt;Using a global Type.&lt;/span&gt;&lt;br /&gt;Second&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; XSD(Schema) is called &lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt; Referring to a existing global element.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-weight: bold;"&gt;Using a global Type:&lt;br /&gt;&lt;/span&gt;&lt;font&gt;Often many of our elements will have the same content. Instead of declaring duplicate local types throughout our schema, we can create a global type. &lt;span style="font-weight: bold;"&gt;Within our element declarations, we can refer to a global type by name (with type attribute).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;&lt;font&gt;&lt;font&gt;&lt;font&gt; Referring to a existing global element:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;Referring to global types allows us to easily reuse content model definitions within our XML Schema. Often, we may want to reuse a particular element delcaration, instead of the type. XML Schemas allow you reuse global element declarations within your content model. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;font&gt;Check this &lt;a style="color: rgb(51, 51, 255);" href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=31&amp;amp;t=005631"&gt;&lt;span style="font-weight: bold;"&gt;link&lt;/span&gt;&lt;/a&gt; for better understanding.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114189594192574800?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114189594192574800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114189594192574800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114189594192574800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114189594192574800'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/03/element-type-declaration.html' title='Element Type - Declaration'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114110588044679153</id><published>2006-02-27T21:47:00.000-08:00</published><updated>2006-02-27T22:30:35.240-08:00</updated><title type='text'>XML Resources</title><content type='html'>&lt;span style=";font-family:georgia;font-size:100%;"  &gt;A collection of good websites that provides useful links and articles about XML technologies.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255); font-family: georgia;" href="http://www.xml.com/"&gt;XML.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255); font-family: georgia;" href="http://www.w3schools.com/"&gt;www.w3schools.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://www.zvon.org/"&gt;www.zvon.org&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114110588044679153?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114110588044679153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114110588044679153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114110588044679153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114110588044679153'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/02/xml-resources.html' title='XML Resources'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-114110442494206704</id><published>2006-02-27T21:22:00.000-08:00</published><updated>2006-02-27T21:47:01.986-08:00</updated><title type='text'>XML IDE's</title><content type='html'>&lt;div style="font-family: georgia; text-align: justify;"&gt;Excellent IDE's for XML development that helps developers to develop xml application at an incredible speed. This tool has lot of modern features that supports latest versions of advanced XML concepts like XPath, XQuery, XSLT and others.&lt;br /&gt;&lt;br /&gt;A must have tool for XML developers.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; font-family: georgia;"&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://www.stylusstudio.com/"&gt;Xml IDE - stylusstudio.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Product&lt;/span&gt;:&lt;br /&gt;Stylus Studio 2006 XML Enterprise Edition.&lt;br /&gt;Stylus Studio 2006 XML Professional Edition.&lt;br /&gt;Stylus Studio 2006 XML Home Edition.&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://www.altova.com/"&gt;Xml IDE - altova.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Product&lt;/span&gt;:&lt;br /&gt;XMLSpy Enterprise Edition -  XML development environment &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-114110442494206704?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/114110442494206704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=114110442494206704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114110442494206704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/114110442494206704'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/02/xml-ides.html' title='XML IDE&apos;s'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-113688334662732249</id><published>2006-01-10T00:53:00.000-08:00</published><updated>2006-05-30T02:40:18.160-07:00</updated><title type='text'>IBM XML Exam Study Material</title><content type='html'>&lt;span style="color: rgb(51, 51, 255);font-family:georgia;" &gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://www-03.ibm.com/certify/tests/obj141.shtml"&gt;IBM XML (Exam - 141) - Objectives&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001670"&gt;&lt;span style="font-weight: bold;"&gt;XML Exam Experience- Ranch 1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001693"&gt;&lt;font&gt;&lt;span style="color: rgb(51, 51, 255);font-family:georgia;" &gt;&lt;span style="font-weight: bold;"&gt;XML Exam Experience- Ranch 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001494"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;span style="color: rgb(51, 51, 255);font-family:georgia;" &gt;&lt;span style="font-weight: bold;"&gt;XML Exam Experience- Ranch 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001681"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001681"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;span style="color: rgb(51, 51, 255);font-family:georgia;" &gt;&lt;span style="font-weight: bold;"&gt;XML Exam Experience- Ranch 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=000241"&gt;Ranch - 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://www.javaranch.com/xml/XMLexamList.jsp"&gt;Ranch - Exam Links&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://www-128.ibm.com/developerworks/edu/x-dw-x-cert1-i.html?ca=dnt-612"&gt;Notes by Hari Vignesh Padmanaban.&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Assesment Test:&lt;/span&gt;&lt;br /&gt;No need to take any paid assesment test. Follow the link given in javaranch, which has an assessment test.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ibmtesting.prime.prometric.com/"&gt;Assessment Test Taking&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://mywebpages.comcast.net/spetrova4/xmlcert_ibmexam.html"&gt;Pre-Assessment Test(with answer).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001645"&gt;&lt;/a&gt;&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://mywebpages.comcast.net/spetrova4/xmlcert_ibmexam.html"&gt;Pre-Assessment Test&lt;/a&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001645"&gt;(Without Answer).&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=52&amp;amp;t=001670"&gt;  &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-113688334662732249?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/113688334662732249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=113688334662732249' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113688334662732249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113688334662732249'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2006/01/ibm-xml-exam-study-material.html' title='IBM XML Exam Study Material'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-113462246954122537</id><published>2005-12-14T20:51:00.000-08:00</published><updated>2005-12-14T20:54:29.550-08:00</updated><title type='text'>DTDs for web.xml and tld</title><content type='html'>&lt;a href = "http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=18&amp;amp;t=007234 "&gt; &lt;span style="font-family:georgia;color:#3333ff;"&gt;&lt;strong&gt;Check it here&lt;/strong&gt;&lt;/span&gt;  &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-113462246954122537?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/113462246954122537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=113462246954122537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113462246954122537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113462246954122537'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2005/12/dtds-for-webxml-and-tld.html' title='DTDs for web.xml and tld'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19091162.post-113231121217947233</id><published>2005-11-18T02:50:00.000-08:00</published><updated>2005-11-18T02:53:32.186-08:00</updated><title type='text'>Where XML should be used.</title><content type='html'>&lt;a href="http://www.codingforums.com/showthread.php?s=0d032fc4545329527273f0b7cf454f0e&amp;t=11642"&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt; All about Xml&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19091162-113231121217947233?l=xmlcollections.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xmlcollections.blogspot.com/feeds/113231121217947233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19091162&amp;postID=113231121217947233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113231121217947233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19091162/posts/default/113231121217947233'/><link rel='alternate' type='text/html' href='http://xmlcollections.blogspot.com/2005/11/where-xml-should-be-used.html' title='Where XML should be used.'/><author><name>Vishnu</name><uri>http://www.blogger.com/profile/13417358697762857267</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
