I am using XMLWriter to create xml. Now I want to read this xml with some Reader library / map. Is there an additional library / library for this?
Currently, I want to use the TouchXML library to read it, but it does not work as expected, as it does not support reading a stream.
I want to do something like:
XmlReader pReader = XmlTextReader.Create(pPath); while (pReader.Read()){ switch (pReader.LocalName){ case EXPEL_DEVICES: { //if ((pImportFlags & (int)ExportClass.Devices) != 0) //{ for (pReader.ReadToFollowing(LOCAL_NAME, NAMESPACE_EXPORT); !pReader.EOF && pReader.LocalName == @"NAME"; ) { if (!pReader.ReadToFollowing(DEVICE_ID, NAMESPACE_EXPORT)) throw new AException(DEVICE_ID); NSString *value = pReader.ReadElementContentAsString(); } } break; } }
user573842
source share