Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

handling entities as part of text nodes

Status
Not open for further replies.

kanghao

IS-IT--Management
Joined
Jul 4, 2004
Messages
68
Location
KR
I have (ampersand,sharp,160,colon) entities in my document.
When I parse the document and print the text node, it give me question marks.

Why this happens?
I use Xalan;
Manifest-Version: 1.0
Created-By: 1.2.2 (Sun Microsystems Inc.)
Main-Class: org.apache.xalan.xslt.Process
Class-Path: xercesImpl.jar xml-apis.jar

Name: org/apache/xalan
Comment: Main Xalan engine implementing TrAX/JAXP
Specification-Title: Java API for XML Processing
Specification-Vendor: Sun Microsystems Inc.
Specification-Version: 1.1
Implementation-Title: org.apache.xalan
Implementation-Version: 2.5.D1
Implementation-Vendor: Apache Software Foundation
Implementation-URL:
Name: org/apache/xpath
Comment: XPath engine
Implementation-Title: org.apache.xpath
Implementation-Version: 2.5.D1
Implementation-Vendor: Apache Software Foundation
Implementation-URL:
Name: org/apache/xml
Comment: DTM implementation and utilities
Implementation-Title: org.apache.xml
Implementation-Version: 2.5.D1
Implementation-Vendor: Apache Software Foundation
Implementation-URL:
Thanks.
 
In order for you to correctly read an ampersand, the document should contain [ignore]&[/ignore]. A valid alternative (although a little odd) is: [ignore]&38;[/ignore]

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top