Hi, John:

XML does not define the – entity.  Please see:

    
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML

One alternative is to use either the – hex or – decimal character 
entity references.  Those produce the same Unicode character.  (As Michael 
Blakeley noted recently, how the XML is serialized shouldn't matter so long as 
it parses to the same result.)


Hoping that's useful,


Erik Hennum

________________________________________
From: [email protected] 
[[email protected]] On Behalf Of John Zhong 
[[email protected]]
Sent: Thursday, December 29, 2011 9:53 PM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Invalid entity reference "ndash"

Hi all,

I am having problem to use the xdmp:document-get function to read a xml with 
entiry reference – I want to know how to fix this problem? I am using ML 
5.0-1.2 version.

[1.0-ml] XDMP-DOCENTITYREF: xdmp:document-get("D:\test.xml") -- Invalid entity 
reference "ndash" at D:\test.xml line 231

Thank you,
John

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to