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; } } }