File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML and unknow html tags

 
Abdul Rasheed
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic