Skip to main content
1-Visitor
July 9, 2010
Question

COM and Editor: openDocument with XML Schema?

  • July 9, 2010
  • 1 reply
  • 1333 views

Hi,

I'm trying to open documents via COM in Arbortext Editor and supply Doctype and Stylesheet on the fly. This works fine for DTDs, but when I specifiy an XML Schema instead, the Editor fails to open the document. Do I miss something or is this simply not possbile with the Editor?

Call:

openDocument(pathToFile, 0x0040|0x0100, "", "", pathToXsdFile, pathToStylesheetFile);

Error:

Source: Epic.Application.1

Description: [A30295] Application.openDocument: Fehler beim ร–ffnen (something like "Error while opening")

Parser-Message:

pathToXsdFile : Line: 2 Column: 3
Expected a markup declaration

Line 2 of the XSD contains the following:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

Best regards,

Mathias

    1 reply

    MathiasH1-VisitorAuthor
    1-Visitor
    July 9, 2010

    Ok, found it myself: The additional load flag OPEN_NAMESPACE_URI = 0x40000 must be specified and the public ID must be set to the schema URI.