Liquid XML Data Binder
Liquid XML Data Binder (C++, Java, VB6) / Reference / C++ / Reference / CSerializationContext / C++ GetNamespaceAliases - CSerializationContext
In This Topic
    C++ GetNamespaceAliases - CSerializationContext
    In This Topic
    CNamespaceAliasMap& GetNamespaceAliases();
    const CNamespaceAliasMap& GetNamespaceAliases() const;
      Property Description  
        Property Name DefaultNamespaceURI  
        Property Type string  
        Accessors Read Only  
        Description A collection of name value pairs, containing a namespace URI and namespace Alias.  

    These alias will be declared at the root level in the document.
    The sample shows what you get if an alias “MyAlias”, and URI "http://sample" are added to the collection.

    <?xml version="1.0"?>
    <MyAlias:Customer xmlns:MyAlias="http://sample"

    Also See CNamespaceAliasMap

    class LTXMLLIB_API CNamespaceAliasMap

    void Add(LPCTSTR lpctAlias, LPCTSTR lpctNamespace);
    void RemoveNamespace (LPCTSTR lpctNamespace);

    std::tstring GetNamespaceFromAlias (LPCTSTR lpctAlias) const;
    std::tstring GetAliasFromNamespace (LPCTSTR lpctNamespace) const;
    bool DoesNamespaceExist (LPCTSTR lpctNamespace) const;
    bool DoesAliasExist (LPCTSTR lpctAlias) const;

    int GetNamespaceCount () const;
    std::tstring GetNamespaceAt (int index) const;