This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML and unknow html tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML and unknow html tags" Watch "XML and unknow html tags" New topic
Author

XML and unknow html tags

Abdul Rasheed
Greenhorn

Joined: May 06, 2005
Posts: 3
Hi

i am struggling to come up with a XML schema that allows unpredicable html tags in xs:string data types. for example the <title> in the xml below can contain html <B> or <I> tags and similarly the <body> text may contain <img> <p> etc...how do i support this in designing the xml schema for such a document.

<article>
<title>....</title>
<body>..</body>
</article>

regards,
Abdul Rasheed
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Not sure if you really want to develop a schema from the scratch for such a thing. Try looking for XHTML schema's. There should be some available on the internet, I don't have the links handy but it shouldn't be hard to find some especially on www.w3.org. I would just start there and build from what they have. But that's just me...

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML and unknow html tags