[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Problem
From:       "matteo BELLONI" <matteo.belloni () tin ! it>
Date:       2001-02-24 17:18:41
[Download RAW message or body]

hi, I0m new in using Soap+ Xerces and I have this problem:
I've made a program to make this XML with this structure:
Addendi
        Add1
        Add2
but when I set a value the result is null. What is wrong?The source is:
file://creo Documento XML
  XMLParserLiaison xpl= new XercesParserLiaison();
  Document doc = xpl.createDocument();
  Element Addendi=doc.createElement("Addendi");
  int i=Addendi.ELEMENT_NODE;
  Addendi.setNodeValue("5");
  System.out.println("add2:"+Addendi.getNodeValue());
  Element add1=doc.createElement("add1");
  add1.setNodeValue("5");
  Element add2=doc.createElementNS("xsi:int","add2");
  add2.setNodeValue("6");
  System.out.println("add2:"+add2.getNodeValue());
  Addendi.appendChild(add1);
  Addendi.appendChild(add2);

nother question please: So making this documents id DOm or XML and if it is in DOM \
how can I convert it in XML? When I write this documents then How can I read this \
?Thanks a lot in advance Theo


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi, I0m new in using Soap+ Xerces and I have this 
problem:</FONT></DIV>
<DIV><FONT face=Arial size=2>I've made a program to make this XML with this 
structure:</FONT></DIV>
<DIV><FONT face=Arial size=2>Addendi</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
Add1</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
Add2</FONT></DIV>
<DIV><FONT face=Arial size=2>but when I set a value the result is null. What is 
wrong?The source is:</FONT></DIV>
<DIV><FONT face=Arial size=2><A href="file://creo">file://creo</A> Documento 
XML<BR>&nbsp; XMLParserLiaison xpl= new XercesParserLiaison();<BR>&nbsp; 
Document doc = xpl.createDocument();<BR>&nbsp; Element 
Addendi=doc.createElement("Addendi");<BR>&nbsp; int 
i=Addendi.ELEMENT_NODE;<BR>&nbsp; Addendi.setNodeValue("5");<BR>&nbsp; 
System.out.println("add2:"+Addendi.getNodeValue());<BR>&nbsp; Element 
add1=doc.createElement("add1");<BR>&nbsp; add1.setNodeValue("5");<BR>&nbsp; 
Element add2=doc.createElementNS("xsi:int","add2");<BR>&nbsp; 
add2.setNodeValue("6");<BR>&nbsp;&nbsp;System.out.println("add2:"+add2.getNodeValue());<BR>&nbsp; 
Addendi.appendChild(add1);<BR>&nbsp; Addendi.appendChild(add2);<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>nother question please: So making this documents id 
DOm or XML and if it is in DOM how can I convert it in XML?</FONT></DIV>
<DIV><FONT face=Arial size=2>When I write this documents then How can I read 
this ?</FONT><FONT face=Arial size=2>Thanks a lot in advance</FONT></DIV>
<DIV><FONT face=Arial size=2>Theo</DIV></FONT></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic