Article
· Jul 4 1m read

How to find your imported XSD file

Have you ever imported an XML schema from an XSD file? You might want to look at the original file again sometime later, but forgot where you put it.

Do not worry, that information is being kept as part of the import process.

The whole imported XSD schema is being kept in the ^EnsEDI.XML.Schema global. That global holds all the imported XSDs in your namespace. The first subscript is the name of the schema that you see in the portal.

 

To look for the source XSD file location, simply look at the following place:

^EnsEDI.XML.Schema(<schema name>,"src",1)

 

For example:

ZW ^EnsEDI.XML.Schema("PatMedData","src",1)

^EnsEDI.XML.Schema("PatMedData","src",1)="c:/users/kskubach/downloads/eq/Patxsd.txt"

If the name of the schema in the portal includes a prefix, make sure to include it as well:

ZW ^EnsEDI.XML.Schema("Myxsd.txt","src",1)

^EnsEDI.XML.Schema("Myxsd.txt","src",1)="c:/users/kskubach/downloads/Testxsd.txt"

 

Of course, if someone has since deleted this file or directory it is a different problem...😉

Discussion (0)0
Log in or sign up to continue