Questions tagged [xml-entities]

Questions about the XML::Entities Perl module.

55 questions
0
votes
2 answers

How can I convert unicode byte sequence to XML entity?

I want to be able to display the tsu (ツ) character from Katakana instead of smiley faces on my website. I already found the byte sequence, which is \343\203\204, but I don't know how to represent this as a XML entity, so that I can display it in a…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
0
votes
1 answer

Can I pass entity from xml data to xslt stylesheet?

I have a dozen of xslt templates and most of them using one specific entity ('ent' in my example). I'm not able to change these templates but I can change outputed xml data. The question is - is it possible to pass entity declared in xml data to…
Artem Yarulin
  • 255
  • 2
  • 11
0
votes
2 answers

Copying an XML file including doctype, entities and notations XSLT 3

I have a series of XML documents that are being copied from one folder into another, transformed with msxsl.exe 1.1.0.1 and an XSLT 1.0 stylesheet, then copied back to the original folder. I don't know why the doctype, entities and notations are not…
Caroline
  • 167
  • 1
  • 11
0
votes
2 answers

How to include "&" in XML file

I need the following output in an XML log="+ Passed Open the Website " Here is the relevant part of the code var1 = ' ' var2 = f' + {res} {na}{var1}' var2 = var2.replace('&', '&') case = ET.SubElement( suite, …
Abhishek Rai
  • 2,159
  • 3
  • 18
  • 38
0
votes
1 answer

Creation of GDML include using python and lxml

According to the GDML manual I can include another file as follows How can I create/add the &materials; to the element using python and lxml?
Keith Sloan
  • 125
  • 1
  • 12
0
votes
1 answer

DOMDocument::load(): Namespace default prefix was not found in Entity

I am parsing some XML with PHP DOMDocument. This is my code: $doc = new DOMDocument; $doc->resolveExternals = true; $doc->substituteEntities = true; $doc->load('../poems_xml/'.$pid.'.xml'); $xsl = new…
HBMCS
  • 686
  • 5
  • 25
0
votes
1 answer

Spark XML does not seem to work with XML Entities (such as &myentity;)

I am using Spark XML to parse a large document that contains a few user-defined entities. This is a simple snippet from the file 1000000
0
votes
1 answer

XSL entity definitions ignored - why?

I'm writing an XSL file that transforms XML to markdown text. I want to transform HTML entities to themselves, e.g. "®" in a piece of text in the XML will yield "®" in the output file. I do not want to translate "®" to its hexadecimal…
Jonathan Sachs
  • 613
  • 8
  • 19
0
votes
1 answer

XML entities don't render

Using h:outputText I want to display a left arrow ← using ←. But it just doesn't render on the page (not even in the inspect element output). What did I do wrong?
Selbi
  • 813
  • 7
  • 23
0
votes
1 answer

Camel Json to XML, what about XML entities?

Using Camel transformation, Json to XML, With
fliot
  • 1
  • 2
0
votes
0 answers

Using Python, Scan Text Fields in the database and Check a for Invalid Special Characters and Contents

I want to Scan some database TextFields for Invalid Special Characters, the data from these textfields will be converted to XML and/or HTML page. Moreover, I want to Check If an XML Self-Defining Entity like &#nnnn; is Valid. What is the best way…
Martin
  • 1
  • 1
0
votes
0 answers

WSO2 ESB escaping xml entity to correct form

I am stuck on creating an output message from wso2 esb 5.0. The correct form of the message should be:
Kamil
  • 23
  • 3
0
votes
0 answers

Handling US-ASCII encoded XML with unsupported entity reference

This question is the continuation of this page PROCESS: The process involved, Opening XML file and do some modification in specific nodes and save it back to another location. PROBLEM FACING: While Saving after some modifications in XML, unsupported…
Karthick Gunasekaran
  • 2,697
  • 1
  • 15
  • 25
0
votes
1 answer

XmlReader read document with unescaped &s

I am trying to parse an XMl document that i received into a string from a web service call. String content = ...;//long xml document using(TextReader reader = new StringReader(content)) using(XmlReader xml_reader = XmlReader.Create(reader,…
luke
  • 14,518
  • 4
  • 46
  • 57
0
votes
1 answer

Escaping ' only within XML Values

Below is an example of how my xml looks currently: J's Burgers 777-888-9999