jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes Need help regarding <p> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Need help regarding <p>" Watch "Need help regarding <p>" New topic

Need help regarding <p>

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 323


I need to add "<"p">" (i.e. Paragraph) tag in my xml but am unable to do so.

I tried writing <!CDATA[[ actual code ]]>section but CDATA is under <sc:Section> element and when I try to validate it,
the parser displays this error :-
cvc-complex-type.2.3: Text '"<""p">"Send comments and suggestions to <url protocol="mailto">barchal@pineapplesoft.com</url>."<"p">"' is not allowed for element <sc:section>. The element declaration's content type is 'element-only'.

NOTE: I'm double quoting "<"p">" as it gets removed after posting here. The Schema is well formed and valid, the xml file is well formed only.

I'm using XMLSpy from Altova and when I check for <sc:section> element in it, I get the following details:

minOcc=1, maxOcc=Unbound, Content =Complex. There is nothing like element-only as shown by the error message.

Below is my XML schema

Below is my XML

Please advise.

Thank you.

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 323

I replaced <![CDATA [ ... ]]> with < & > the problem is resolved.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Need help regarding <p>
It's not a secret anymore!