protected void RDFWriteNamespaceDecl(NamespacePrefixPair ns)
 {
     this.RDFWriteAttributeString(RDFConstants.Xmlns, ns.Prefix, ns.NS);
 }
 public void RDFWriteStartElement(NamespacePrefixPair ns, string element)
 {
     this._writer.WriteStartElement(ns.Prefix, element, ns.NS);
 }
 public void RDFWriteElement(NamespacePrefixPair namespacePrefix, RDFElementNameTable element, string value)
 {
     this._writer.WriteElementString(namespacePrefix.Prefix, RDFNameTableCache.GetElementName(element), null, value);
 }
 public void RDFWriteAttributeString(NamespacePrefixPair namespacePrefixPair, string name, string value)
 {
     this._writer.WriteAttributeString(namespacePrefixPair.Prefix, name, namespacePrefixPair.NS, value);
 }
 public void RDFWriteStartElement(NamespacePrefixPair ns, RDFElementNameTable element)
 {
     this._writer.WriteStartElement(ns.Prefix, RDFNameTableCache.GetElementName(element), ns.NS);
 }
        protected void RDFWriteMessageTag(string element, RDFNamespaces namespaces)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            // <?xml version="1.0" encoding="UTF-8"?>
            if (!this.Wrapped)
            {
                this.RDFWriteStartDocument();
                this.Wrapped = true;

                // <Data
                this.RDFWriteStartElement(this.Namespaces.RDF, element);            
                
                this._dataSetNS = this.Namespaces.RDF;

                this.RDFWriteNamespaceDecl(this._dataSetNS);

                // xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                this.RDFWriteNamespaceDecl(this.Namespaces.Xsi);

                // rdf:Property
                this.RDFWriteNamespaceDecl(this.Namespaces.Property);
                this.RDFWriteNamespaceDecl(this.Namespaces.QB);
                this.RDFWriteNamespaceDecl(this.Namespaces.Skos);
                this.RDFWriteNamespaceDecl(this.Namespaces.Xkos);
                this.RDFWriteNamespaceDecl(this.Namespaces.Owl);
                this.RDFWriteNamespaceDecl(this.Namespaces.RDFs);
                this.RDFWriteNamespaceDecl(this.Namespaces.DocTerms);
                this.RDFWriteNamespaceDecl(this.Namespaces.SdmxConcept);
                this.RDFWriteNamespaceDecl(this.Namespaces.Prov);

                // xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message SDMXMessage.xsd">
                string schemaLocation = this.Namespaces.SchemaLocation ?? string.Empty;
                string structureSpecific = string.Empty;
                if (!string.IsNullOrWhiteSpace(structureSpecific))
                {
                    schemaLocation = string.Format(
                        CultureInfo.InvariantCulture, "{0} {1}", schemaLocation, structureSpecific);
                }

                if (!string.IsNullOrWhiteSpace(schemaLocation))
                {
                    this.RDFWriteAttributeString(this.Namespaces.Xsi, RDFConstants.SchemaLocation, schemaLocation);
                }
            }
        }
 public void RDFWriteAttributeString(NamespacePrefixPair namespacePrefixPair, RDFAttributeNameTable name, string value)
 {
     this._writer.WriteAttributeString(namespacePrefixPair.Prefix, RDFNameTableCache.GetAttributeName(name), namespacePrefixPair.NS, value);
 }
 public void RDFWriteElementAttributeWithStringTag(NamespacePrefixPair ElementNS, NamespacePrefixPair AttributeNS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Constant, string Value)
 {
     this.RDFWriteStartElement(ElementNS, Element);
     this.RDFWriteAttributeString(AttributeNS, Attribute, Constant);
     this.RDFWriteString(Value);
     this.RDFWriteEndElement();
 }
 public void RDFWriteElementWithStringTag(NamespacePrefixPair NS, NamespacePrefixPair NSAtt, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Text, string Constant)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(NSAtt, Attribute, Constant);
     this.RDFWriteString(Text);
     this.RDFWriteEndElement();
 }
 public void RDFWriteElementWithStringTag(NamespacePrefixPair NS, RDFElementNameTable Element, string Text)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteString(Text);
     this.RDFWriteEndElement();
 }
 public void RDFWriteDescriptionTag(NamespacePrefixPair NS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Locale, string Value)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(this.Namespaces.XML, Attribute, Locale);
     this.RDFWriteString(Value);
     this.RDFWriteEndElement();
 }
 public void RDFWriteGeneralTag(NamespacePrefixPair NS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Constant)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(NS, Attribute, Constant);
     this.RDFWriteEndElement();
 }