Hi,
I am using xml2map to parse a idml spread xml file.
I use the code below to get the TextFrame elements. There should be 16 elements. However, I only get 14. What is the problem?
The xml file is 18MB big. I have uploaded it to GitHub:https://github.com/xulihang/idml2txt/releases/download/0.0.1/Spread_u11f63.7z
Thanks!
I am using xml2map to parse a idml spread xml file.
I use the code below to get the TextFrame elements. There should be 16 elements. However, I only get 14. What is the problem?
B4X:
Sub getXmlMap(xmlstring As String) As Map
Dim ParsedData As Map
Dim xm As Xml2Map
xm.Initialize
ParsedData = xm.Parse(xmlstring)
Return ParsedData
End Sub
Sub ListView1_MouseClicked (EventData As MouseEvent)
'...
Dim spreadMap As Map
spreadMap=getXmlMap(spreadString)
Dim root As Map
root=spreadMap.Get("idPkg:Spread")
Dim Spread As Map
Spread=root.Get("Spread")
Dim TextFramesList As List
TextFramesList=GetElements(Spread,"TextFrame")
Log(TextFramesList.Size)
'size:14
End Sub
The xml file is 18MB big. I have uploaded it to GitHub:https://github.com/xulihang/idml2txt/releases/download/0.0.1/Spread_u11f63.7z
Thanks!