General XML

[11i to R12 - Reimplemenation] getNodeValue prints empty spaces

Hi Experts, We are using a java stored procedure for parsing/doing some XML operation(FYR - 11i code implemented in R12.2.6, the xml has SHIFT_JS encoding).We are getting some issue , so I am debugging this, Now I am trying to the value of a NodeList element PFB the code for that.kindly pardon me.. because i have more than one question - I have mentioned in the below comment section.  domparser.parse(url);//url has the path where the format.xml is placed XMLDocument xmldocument = domparser.getDocument/*If i print xmldocument.toString()- it prints oracle.xml.parser.v2.XMLNodeList#c3abce--> how to print the XML question Question #1*/NodeList nodelist = xmldocument.getElementByTag("label")for (int i =0; i < nodeList.getLength() ; i ++){     /* print nodeList.getLength() its print 1*/     Node node = nodelist.item(i);     /*print node.getNodeValue - it prints NULL, Not sure why its printing null Question #2*/     {          String s_ret = null;          NodeList nodelist_test = node.getChildNodes();          int i = nodelist_test.getLength(); // value is 27          int j =0;          do            {               if(j >= i)               break;                              String s1_test = null;               if(nodelist_test.item(j)!= null)               {                    s1_test=nodelist_test.item(j).getNodeValue();                    if(s1_test!=null)                    {                            /*Control comes here*/                         s1_test =s1_test.trim(); // When i print s1_test.trim() -- its empty MAIN QUESTION *why its empty??*                    }                    if (s1_test !=null && !s1_test.equals(""))                    {                     /* ---Control DID not go in this block */                      returns s1_test;                    }                    /*some logic*/                                   }               /*Some logic*/            }                    }}  
i post this question in this portal , as this is related to oracle and XML
Please let me know if the information provided is inadequate or else any modification needed.

Related Links

Extraction of CData Part and later its embedding
A little confused by XSQL/XSLT
DOMException on executing org.w3c.dom .Node#getNodeValue()
SOAP HTTP header in SOAP request
XML and Tomcat
Security Concern using AJAX and DHTML
What is the main difference between XML 1.0, 1.1, and 2.0
XSL to validate xml structure using XSD
format xxxxxxxxxx into xxxx.xx.xxxx
Where to download XML Developer Kit 11g??
Unsupported XSL element and JDeveloper
Query to read XML from CLOB table column
Invalid XML being pushed in HTML 4,5
Can we declare more than one <sequence> tags in a complex type?
variable#incontext not working
How to decrease the XPath evaluation time ?


Java and JavaScript in...
Data Warehousing
Ultra Search
Business Intelligence ...
SCM - Process Manufact...
General SCM Discussion
SQL Developer
Secure Backup
Backup & Recovery (Kor...
EJB (Korean)
Migration and Moderniz...
WebCenter Portal
Audit Vault
SCM - Asset Lifecycle ...
Financial Consolidatio...
Business Intelligence ...
WebLogic Server/Java E...
Business Services (BPM)
WebLogic Server - Upgr...
Archived Discussion Fo...
Primavera Contract Man...
广州 User Group
2007 BEA TMT创新大赛
WebLogic Server - Diag...
Primavera EVM User Com...
PeopleSoft OVM Templates
Siebel BI (Archived)
Java SE
Other Topics [ARCHIVE]
HotSpot Internals [ARC...
Javadoc Tool (Develope...
Swing [Archive]
Java TV
Java System Portal Ser...
JavaFX 2.0 and Later
Oracle Database 11g Ex...
Database Migration Ass...
Agile PLM
Oracle Lite (Korean)
Oracle Social Network
Java Embedded MOOC
My Oracle Support Sear...
Oracle Code Online
Java Sessions
Spotlight on Success W...
EMEA Eloqua Users
Eloqua Users - San Diego
Huntsville, Alabama El...
Search Engine Marketing
Eloqua-Netsuite Integr...
Grupo Eloquea – Latino...
Systems Configuration ...
BICS Data Visualization
SPARC Servers
OMC - Industry Solutio...
APAC Oracle Marketing ...
Supply and Demand
Manufacture and Maintain
Oracle JET
Java SE Snapshots: Pro...
Middleware Partner Com...
Oracle Learning Library
Oracle Certified Maste...
Netra Servers
Data Visualization Des...
Oracle Management Cloud
Oracle Partner Acceler...
From MOOC1
Tajikistan Oracle User...
Eloqua Consultants
Application Server Arc...
Web Cache and Edge Sid...
Enterprise Resource Pl...
Identity Manager
Oracle on Apple Mac OS X
Upgrades and Migration
엔터프라이즈 관리자 ((Korean))
새로운 Technical Bulletin
Essbase Analytics
Primavera Risk Analysis
Tuxedo (Chinese)
Solaris Archived Forums
Sun Management Center
Endeca Information Dis...
Forms Gruppe


Encrypt Message