Questions tagged [pcdata]

Parsed character data(PCDATA) is text node or entity string in XML which is evaluated by the XML processor.

20 questions
31
votes
6 answers

what actually is PCDATA and CDATA?

it seems that a loose definition of PCDATA and CDATA is that PCDATA is character data, but is to be parsed. CDATA is character data, and is not to be parsed. but then someone told me that CDATA is actually parsed or PCDATA is actually not…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
7
votes
1 answer

What is this "PCDATA invalid Char value 11" error?

I have to use a XML file but I don't get all the items because of this error which is displayed in my navigator, before the content of the file. The exact error is : This page contains the following errors: error on line 4099 at column 10: PCDATA…
Rob
  • 15,732
  • 22
  • 69
  • 107
6
votes
2 answers

PCDATA vs CDATA in XML DTD

In XML DTD's - When defining an element , we use #PCDATA to say that this element can contain any parseable text. When defining an attribute , we use CDATA to say that its value can be any character data. CDATA as is used in XML is something which…
nikel
  • 3,402
  • 11
  • 45
  • 71
3
votes
1 answer

Why is this not a valid XML DTD? (Parameter entity and #PCDATA)

Using the DTD validator here, I am informed that the following DTD is invalid. The error message is: "A '(' character or an element type is required…
His
  • 5,891
  • 15
  • 61
  • 82
2
votes
1 answer

XML validation of #PCDATA

I have this simple XML: ]> This is the content…
Ian
  • 2,078
  • 2
  • 19
  • 19
2
votes
1 answer

RTF #PCDATA vs Document Text

I'm trying to understand the RTF 1.9.1 specification document but #PCDATA (text without control words) is confusing me. Below is some sample code to show what I don't understand. Note that the text below is formatted incorrectly. I formatted it…
Michael Hogenson
  • 1,292
  • 1
  • 15
  • 31
2
votes
3 answers

DTD syntax - allow sub element OR pcdata

My .xml structure may have the following data: nmWinMultiReports_main string
Shlomo
  • 3,880
  • 8
  • 50
  • 82
1
vote
1 answer

pugixml node_cdata, node_pcdata set_value() invalid characters

pugixml seems to be adding invalid characters when I set the value of a node_pcdata. The code is below. What I'm trying to do is base-64 encode a PNG and send it via XML. I wrote the base-64 encoded text to a file to check it separately from…
Tomas
  • 125
  • 1
  • 10
1
vote
2 answers

Problem with xml

I am novice to xml...I just started studying xml....I have the following doubts.. The following is my xml code ]>
Jinu Joseph Daniel
  • 5,864
  • 15
  • 60
  • 90
1
vote
1 answer

CDATA inside PCDATA handling in XML

If we have the following XML element: a < b and the another one ab Do both elements x and y have the value of a < b? Is the second example valid, common, recommended or something like that? AFAK y has three child…
Doncho Gunchev
  • 2,159
  • 15
  • 21
1
vote
1 answer

How to parse PCDATA and child element separately with PHP DOM?

I'm trying to parse an XML of a dtbook, which contains levels (1, 2 and 3) that later on contains p-tags. I'm doing this with PHP DOM. Link to XML Inside som of these p-tags there are noteref-tags. I do get a hold of those, but it seems that the…
1
vote
1 answer

What is the use of PCDATA in XML?

By default everything in XML is parsed character data(#PCDATA), then why do we need to specify #PCDATA in DTD. Somebody please explain. Thanks.
Siva R
  • 427
  • 2
  • 8
  • 23
1
vote
2 answers

xml data always being created as CDATA and not PCDATA

I wrote a web service with C# , and i want one of his methods to return an XML. i've managed to do so , but all the data is being tagged as CDATA and not being parsed. its not what i am looking for. this is my code : [WebMethod(EnableSession =…
David Gidony
  • 1,243
  • 3
  • 16
  • 31
1
vote
2 answers

Element Declaration: Defining content as #PCDATA and one occurence of child element

In the xml spec, it says: [Definition: An element type has mixed content when elements of that type may contain character data, optionally interspersed with child elements.] In this case, the types of the child elements may be constrained, but not…
Alderath
  • 3,761
  • 1
  • 25
  • 43
0
votes
1 answer

Questions for making a MySQL table from a DTD file

I have a dtd file which describes what columns my columns should have. The problem is, it gives no info on what data type I should use for the columns, i.e whether INT, Varchar, or Text, and no info on the max length of the columns. In most places…
Ali
  • 261,656
  • 265
  • 575
  • 769
1
2