Friday, September 13, 2013

How to handle Oracle Fusion (SOA) XSD Imports with the 'oramds' prefix

Oracle Fusion (SOA) uses the prefix 'oramds' in schemaLocation attribute of Imports for XSD files within its Metadata Services repository (MDS).

When you export these XML Schema files to disk to edit them, XML Editor tools will report invalid paths for the imports as they will not find them on disk at the specified schemaLocation.

This can be handled in Liquid XML Studio using an XML Catalog file as follows:
 
1. Create an XML document in the Liquid XML Editor with the following contents:
  1. <?xml version="1.0"?>
  2. <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  3.     <rewriteURI
  4.         uriStartString="oramds:/"
  5.         rewritePrefix="file:///c:/" />
  6. </catalog>
2. Save the file as to disk e.g. c:\myfolder\OracleMDSCatalogue.xml
 
3. Select the menu option Tools->Options. The options window will open, in the tree select  Environment->XML Catalogs. Then click Add and enter the path to the catalog mapping file you just created. E,g, c:\myfolder\OracleMDSCatalogue.xml.
 
Now when you open an XSD, Liquid XML Studio will internally replace "oramds:/" with "file:///c:/" so the schemaLocation attribute values will be able to be located on disk.
 
http://support.liquid-technologies.com/KB/a100/how-to-handle-oracle-fusion-soa-xsd-imports-with-oramds.aspx

Tuesday, September 10, 2013

How to create a sample XML Document from an XML Schema (XSD)

You can create a sample XML Document by opening the XML Schema (XSD) and selecting:
Tools->Create Sample XML Document

The new XML Document will include a schema location attribute to associate it with the XSD. When you click Validate, Liquid XML Studio will then will validate the XML Document using the associated XML Schema.

http://support.liquid-technologies.com/KB/a98/how-to-create-a-sample-xml-document-from-an-xml-schema-xsd.aspx

Monday, September 09, 2013

How to validate an existing XML Document against an XML Schema

To validate an XML Document against and XML Schema (XSD) you need to associate them in one of 2 ways.

Option 1 - Open the XML Document and click:
Tools->Attach Schema

This will add a schema location attribute to associate the XML document with the XSD.

Option 2 - Open the XML Document and click:
Tools->Schema Used to Validate XML

This will add an internal association within Liquid XML Studio, but will not change the XML Document.

When you click Validate, Liquid XML Studio will then will validate the XML Document using the associated XML Schema.

http://support.liquid-technologies.com/KB/a99/how-to-validate-an-existing-xml-document-against-an.aspx

Thursday, September 05, 2013

Visual C++ 11.0 XP Liquid Runtime

Liquid XML Runtime for Visual C++ 11.0 XP is now included in the latest Liquid XML 2013 point release (11.0.12).

Microsoft added a new option to Visual Studio 2012 Update 1 to allow you to target XP in your C++ build. To Deploy on Windows XP, all DLLs need to be built with the XP flag set. The new Liquid XML runtimes allow you to do this.

Note: You will need to manually change the setting in the generated C++ project file for XP. Also, you will need to select the XP version of the LIB and DLL Liquid Runtime files.