Questions tagged [xml-entities]

Questions about the XML::Entities Perl module.

55 questions
0
votes
1 answer

How to make a valid string for XML in JavaScript?

I'm looking for a function to convert a string to the xml string with xml entities where needed. Something like htmlentities in PHP but for XML and in Javascript. Thank you for any help!
MartyIX
  • 27,828
  • 29
  • 136
  • 207
0
votes
1 answer

Introducing ENTITY into oXygen causes Xerces "Element type ... must be declared" error

I have the following, very simple XML file (significantly cut back from the original for the purposes of this question): %entities; ]>
Cosmittus
  • 637
  • 6
  • 19
0
votes
1 answer

Method to decode XML entities?

I am working on a PHP 5.3 production server, so html_entity_decode($, ENT_XML1) is not available. My question is simple: What is the conversion method for example for Ÿ to a byte?
Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102
0
votes
2 answers

Why is XmlParser converting my character hex code string to unicode?

In my Grails application I use Groovy's XmlParser to parse an XML file. The value of one of the attributes in my XML file is a string that equals a character hex code. I want to save that string in my database: Ñ Unfortunately the attribute…
ubiquibacon
  • 10,451
  • 28
  • 109
  • 179
0
votes
1 answer

Preserve XML entity references while getting InnerText or InnerXml with XmlDocument

I am trying to get InnerText or InnerXml of an Xml node using XmlDocument, at the same time I want to preserve & ' ". However, even if I try InnerXml, it only preserves & but not ' and " I would like to know the exact…
Indigo
  • 2,887
  • 11
  • 52
  • 83
0
votes
1 answer

XML async entity causes validation problems -- how do I escape it?

I generate static HTML pages and I've found so far that the best way to do this is using XML to Linq, as this makes manipulating the document quite similar to JavaScript/jQuery. It has worked well so far, except I added an AddThis button to my…
mejdev
  • 3,509
  • 4
  • 24
  • 38
0
votes
1 answer

Don't understand the output in XML Entities and PHP SimpleXMLElement

I use entities in XML and I don't understand my results. I have an XML file wich calls an external entity, this is config.xml :
Antoine-Ka
  • 29
  • 5
-1
votes
3 answers

Encoded HTML Characters

First off, I am NOWHERE near an expert on HTML, I would be nervous to say I'm a novice, but II am currently working with some html being returned within a web service XML document. One of the stored values provides me with this HTML coding for our…
Volearix
  • 1,573
  • 3
  • 23
  • 49
-1
votes
2 answers

How to unescape ü to ü?

I would like to unescape a XML character entity reference ü to ü in Java. How can I achieve this?
user987144
  • 75
  • 3
  • 12
-2
votes
2 answers

Un-Escaping XML encoded characters

Hi I got response as like instead of STD xml. How Can i convert it into XML by using PHP .. …
user1806296
  • 41
  • 2
  • 11
1 2 3
4