Ejemplo n.º 1
0
 public void WriteXML(XmlTextWriter writer)
 {
     writer.WriteStartElement(CrunchedLayer.GetXMLTag());
     writer.WriteAttributeString(Layer.GetLayerDisplayNameTag(), this.displayName);
     writer.WriteAttributeString("ReferenceName", SampleHTMLWriter.ReferenceName(this.displayName));
     this.namingScheme.WriteXML(writer);
     writer.WriteStartElement("DefaultView");
     this.defaultView.WriteXMLToAttributes(writer);
     writer.WriteEndElement();
     writer.WriteStartElement("SourceMapRecordList");
     foreach (SourceMapRecord current in this.sourceMapRecords)
     {
         current.WriteXML(writer);
     }
     writer.WriteEndElement();
     writer.WriteStartElement("RangeDescriptors");
     foreach (RangeDescriptor current2 in this.rangeDescriptors)
     {
         current2.WriteXML(writer);
     }
     writer.WriteEndElement();
     foreach (ThumbnailRecord current3 in this.thumbnailRecords)
     {
         current3.WriteXML(writer);
     }
     writer.WriteEndElement();
 }
Ejemplo n.º 2
0
        public CrunchedFile(MashupParseContext context)
        {
            XMLTagReader xMLTagReader = context.NewTagReader(CrunchedFile.crunchedFileTag);

            while (xMLTagReader.FindNextStartTag())
            {
                if (xMLTagReader.TagIs(LayerList.GetXMLTag()))
                {
                    XMLTagReader xMLTagReader2 = context.NewTagReader(LayerList.GetXMLTag());
                    while (xMLTagReader2.FindNextStartTag())
                    {
                        if (xMLTagReader2.TagIs(CrunchedLayer.GetXMLTag()))
                        {
                            this.crunchedLayers.Add(new CrunchedLayer(context));
                        }
                    }
                }
            }
        }