on 12-12-2008 4:50 PM
Hello all,
we want to process an SGML file through XI / PI. The problem is that the SGML has tags in that are not closed like this:
<aaa attribute="..."...> ... </aaa>
<bbb attribute="...">
<ccc attribute="..."...> ... </ccc>
my first idea was to read this with fileadapter and create a file adapter module in front of processing but i am not really sure that his is working. the own fileadapter module should be able to enhance the SGML with the closing tags. I do not know the algorithm at the moment i have to use...
Are there any other solutions for my problem?
many thanks
alex
Hi Alex
You can process SGML but you need adapter module.
As SGML need not to be strict XML file. You can face tags that does not have end tag or no attribute.
To convert SGML to XML best is to use a DTD to compare with while generating XML due to irregular tags.
Download some free tool which convert SGML to XML and try to generate DTD as well. Write adapter module for the same and then verify against the tool
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI VJ,
i am not sure that this solve my problem. i have a problem with the missing tag for bbb, not for aaa. or am i wrong?
many thanks
alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is a normal XML strucuture. In your data type create attribute for the aaa element instead of elements under it. You are done.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.