Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unicode and XML Schema question

Status
Not open for further replies.

pramenjatjek

Programmer
Feb 16, 2003
4
AU
How can you represent a unicode character, for example an em dash, in an XML document through a schema?

Do I need to create an empty tag in my xml document (eg, <em/>) and then refer to this empty character in a schema? I found some information about \p{} which would represent a character. So would this then be \p{—}? How is this put in a schema though?

Thank you

 
I'm not what you're asking.

It sounds like you want to require documents that conform to your schema to have only a certain character in a certain element.

If so, then you can add a enumeration to that element that contains that character.

If you want to make sure that a certain element *contains* your character (there may be other characters in there too), I'm not sure how to require that -- a regular expression, maybe? Anyone?

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top