コード例 #1
0
 protected void RDFWriteNamespaceDecl(NamespacePrefixPair ns)
 {
     this.RDFWriteAttributeString(RDFConstants.Xmlns, ns.Prefix, ns.NS);
 }
コード例 #2
0
 public void RDFWriteStartElement(NamespacePrefixPair ns, string element)
 {
     this._writer.WriteStartElement(ns.Prefix, element, ns.NS);
 }
コード例 #3
0
 public void RDFWriteElement(NamespacePrefixPair namespacePrefix, RDFElementNameTable element, string value)
 {
     this._writer.WriteElementString(namespacePrefix.Prefix, RDFNameTableCache.GetElementName(element), null, value);
 }
コード例 #4
0
 public void RDFWriteAttributeString(NamespacePrefixPair namespacePrefixPair, string name, string value)
 {
     this._writer.WriteAttributeString(namespacePrefixPair.Prefix, name, namespacePrefixPair.NS, value);
 }
コード例 #5
0
 public void RDFWriteStartElement(NamespacePrefixPair ns, RDFElementNameTable element)
 {
     this._writer.WriteStartElement(ns.Prefix, RDFNameTableCache.GetElementName(element), ns.NS);
 }
コード例 #6
0
        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);
                }
            }
        }
コード例 #7
0
 public void RDFWriteAttributeString(NamespacePrefixPair namespacePrefixPair, RDFAttributeNameTable name, string value)
 {
     this._writer.WriteAttributeString(namespacePrefixPair.Prefix, RDFNameTableCache.GetAttributeName(name), namespacePrefixPair.NS, value);
 }
コード例 #8
0
 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();
 }
コード例 #9
0
 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();
 }
コード例 #10
0
 public void RDFWriteElementWithStringTag(NamespacePrefixPair NS, RDFElementNameTable Element, string Text)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteString(Text);
     this.RDFWriteEndElement();
 }
コード例 #11
0
 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();
 }
コード例 #12
0
 public void RDFWriteGeneralTag(NamespacePrefixPair NS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Constant)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(NS, Attribute, Constant);
     this.RDFWriteEndElement();
 }