private void readAttributes() { foreach (XmlNode element in this.getAttributes()) { var name = CommonReader.readNodeAttribute(element, "name"); //the namespace these elements are put into in csCode var ns = this.csNameSpace; var type = CommonReader.readNodeAttribute(element, "type"); var documentation = CommonReader.readInnerText(this.getNodeDocumentation(element)); var a = new Attribut_(name, ns, type, documentation); attributes[aIdx++] = a; } }
private void readAttributeGroups() { foreach (XmlNode group in this.getAttributeGroups()) { var gName = CommonReader.readNodeAttribute(group, "name"); var documentation = CommonReader.readInnerText(this.getNodeDocumentation(group)); foreach (XmlNode element in this.getAttributes(group)) { var name = CommonReader.readNodeAttribute(element, "name"); var ns = this.csNameSpace; var type = CommonReader.readNodeAttribute(element, "type"); //var documentation = this.readInnerText(this.fileReader.getNodeDocumentation(element)); var a = new Attribut_(name, ns, type, documentation, gName); //put data into array attributes[aIdx++] = a; } } }
private void readElements() { foreach (XmlNode element in this.getElements()) { var name = CommonReader.readNodeAttribute(element, "name"); //the namespace these elements are put into in csCode var ns = this.csNameSpace; var type = CommonReader.readNodeAttribute(element, "type"); var isAbstract = CommonReader.readNodeAttribute(element, "abstract"); var substGroup = CommonReader.readNodeAttribute(element, "substitutionGroup"); var nillable = CommonReader.readNodeAttribute(element, "nillable"); var documentation = CommonReader.readInnerText(this.getNodeDocumentation(element)); var e = new Element(name, ns, type, isAbstract == "true", substGroup, nillable, documentation); e = combineElementAndType(e); this.elements[this.eIdx++] = e; } }