Questions tagged [xml-entities]

Questions about the XML::Entities Perl module.

55 questions
1
vote
1 answer

How to get the range of characters

I am about to import SVG - Fonts with Javascript to be able to animate even single letters. Thereby i am storing the glyphs in an Javascript Object, where the Unicode-value of the glyph defines the key and the glyph itself becomes the value. So when…
philipp
  • 15,947
  • 15
  • 61
  • 106
1
vote
1 answer

Including an entity in an myBatis mapper file

I'm upgrading from iBatis 2.x to myBatis 3.0.6 and I have a mapper file which includes an external entity as follows:
kkudi
  • 1,625
  • 4
  • 25
  • 47
1
vote
1 answer

Get ascii character set as ascii character set in servlet

Using jsp we print this Hh’k value in hidden field and then submit it. Then in servlet, we are getting it as parameter Hh'k, instead we want this as Hh’k. Any suggestions?
harishtps
  • 1,439
  • 7
  • 20
  • 35
1
vote
1 answer

Unable to parse any XML input. Error on line 5: The reference to entity "utm_medium"

I am getting an XML parsing error: Unable to parse any XML input. Error on line 5: The reference to entity utm_medium must end with the ; delimiter. You most likely forgot to escape & into & with the following, the error is with the xhtml:link…
user580950
  • 3,558
  • 12
  • 49
  • 94
1
vote
1 answer

How to make XSL Transformer safe for malicious attacks like XXE?

For xsl Transformation I am using this interface: javax.xml.transform.Transformer The implementation is saxon.jaxp.TransformerImpl I need to make this Transformer safe for XML External Entity (XXE) Attacks. Right now if there is an external entity…
Toni26
  • 489
  • 4
  • 11
1
vote
1 answer

Java and XML: How to get list of included files

I have problem with by Xinclude or as an entity included files. I need to know, which files have been included by parser. Example: ]>
Theodor Keinstein
  • 1,653
  • 2
  • 26
  • 47
1
vote
1 answer

Dereferencing entities using XSLT

I have XML files that use embedded entity declarations. In the result file I need to replace the entity names with the actual file they are pointing to. But AFAIK entities cannot be pointed to in an XSLT stylesheet, as they are supposed to be…
4everJang
  • 321
  • 2
  • 12
1
vote
1 answer

Java 11 XML parser pauses and displays entity error when calling normalizeDocument() on XHTML 1.1 document

I'm using Java 11 (AdoptOpenJDK 11.0.5 2019-10-15) on Windows 10. I have some legacy XHTML 1.1 files I want to process. They take the following general form:
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
1
vote
0 answers

Entity Declaration missing when updating XML Files - Java

]> .... &product-info; &item-info; I have an XML…
1
vote
2 answers

Use perl LibXML Element->getAttribute() without expanding unicode entities in value

I am currently trying to create a perl script that uses LibXML to process data in an SVG font. In an SVG font, each character is defined as a glyph element with an unicode attribute that defines its unicode address in the form of a unicode entity;…
Quote
  • 183
  • 10
1
vote
1 answer

Generate CRLF in TSQL to be accepted by SSRS

In TSQL I concatenate different rows to one cell with: FOR xml path('') I place the next characters after every line to produce a linefeed. + char(13) + char(10) SSRS does generate a linefeed but also prints these CRLF characters. Every line ends…
1
vote
2 answers

How can I convert a Java string to xml entities for versions of Unicode beyond 3.0?

To convert java characters to xml entities, I can do the following for each char in a String: buf.append("&#x"+ Integer.toHexString(c | 0x10000).substring(1) +";"); However, according to other stackoverflow questions, this only works for Unicode…
HappyEngineer
  • 4,017
  • 9
  • 46
  • 60
1
vote
1 answer

Conflict with DTD

I have the feeling to really misunderstand the DTD with XML : In an XML file (which has got a doctype) I include with an entity another XML file (which has also got a doctype). And my parser is angry about it. I know the problem is the Doctype…
Antoine-Ka
  • 29
  • 5
1
vote
2 answers

Java RegEx: Replace all xml characters with their entity number

I am trying to port a function I wrote in ActionScript to Java and I am having a bit of trouble. I have included the function below. I found this response to question #375420, but do I really need to write a separate class? Thanks. public static…
Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
1
vote
1 answer

How to load DocBook XML files with PHP's DomDocument having named entities defined in other file?

I'm trying to load XML files from the PHP repository of the online documentation. It's by the DocBook standard. However, when I load an XML file I get errors like: Warning: DOMDocument::load(): Entity 'reftitle.intro' not defined I somewhat…
hakre
  • 193,403
  • 52
  • 435
  • 836