You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
null:-1:in `createEntityReference': org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
from XmlEntityReference.java:76:in `init'
from XmlNode.java:291:in `rbNew'
from XmlNode$s$0$0$rbNew.gen:65535:in `call'
from DynamicMethod.java:219:in `call'
from DynamicMethod.java:215:in `call'
from CachingCallSite.java:332:in `cacheAndCall'
from CachingCallSite.java:203:in `call'
from test.rb:11:in `__file__'
from test.rb:-1:in `load'
from Ruby.java:697:in `runScript'
from Ruby.java:690:in `runScript'
from Ruby.java:597:in `runNormally'
from Ruby.java:446:in `runFromMain'
from Main.java:369:in `doRunFromMain'
from Main.java:258:in `internalRun'
from Main.java:224:in `run'
from Main.java:208:in `run'
from Main.java:188:in `main'
Is there anyway to create newline node?
The text was updated successfully, but these errors were encountered:
It seems Xerces is unable to create EntityReference with the name starting with '#'. So, I changed internal node type from EntityReference to Text. The change was pushed in rev. 0d8c3f2 . Now, pure Java version behaves like libxml version.
…ore info below).
The fix for #719 made ReferenceEntity nodes look like text nodes. This
caused normalization of the document (i.e. concatenating adjacent
nodes) to combine the reference entity node with any adjacent text
nodes and create a new text node. When converting the document to
a string it was impossible to know if the text came from a reference
entity or text node, or both, which caused entities to be printed
without the delimiters '&' and ';'.
I wrote creating newline node using EntityReference
Nokogiri 1.4.7 returns valid xml what I expected.
But Nokogiri 1.5.5 causes DOMException.
Is there anyway to create newline node?
The text was updated successfully, but these errors were encountered: