Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2006, 11:25 PM
Johannes Koch
Guest
 
Posts: n/a
Default process non-namespaced markup

Hi,

I want to process non-namespaced markup documents written in different
languages. I use e.g. with Xerces' XNI XMLDocumentHandler.
Unfortunately, some languages use the same element types. But I have to
treat them differently.

One approach would be to make the distinction by the root element type.
Are there more suitable approaches?
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
  #2  
Old March 9th, 2006, 09:35 PM
Peter Flynn
Guest
 
Posts: n/a
Default Re: process non-namespaced markup

Johannes Koch wrote:[color=blue]
> Hi,
>
> I want to process non-namespaced markup documents written in different
> languages. I use e.g. with Xerces' XNI XMLDocumentHandler.
> Unfortunately, some languages use the same element types. But I have to
> treat them differently.
>
> One approach would be to make the distinction by the root element type.
> Are there more suitable approaches?[/color]

Add an xml:lang="xx" attribute to the root element start-tag.
If your system is processing the documents in a program, can it
detect the language externally (ie the files come from different
sources)? That way it could be automated.

///Peter
--
XML FAQ: http://xml.silmaril.ie/

  #3  
Old March 9th, 2006, 10:45 PM
Johannes Koch
Guest
 
Posts: n/a
Default Re: process non-namespaced markup

Peter Flynn wrote:[color=blue]
> Add an xml:lang="xx" attribute to the root element start-tag.
> If your system is processing the documents in a program, can it
> detect the language externally (ie the files come from different
> sources)? That way it could be automated.[/color]

Sorry for not making it clear: with languages I mean 'markup' languages
like Docbook, NITF etc.
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles