接受不规则的xml字符串,里面节点间的数据是需要提取出来进行处理的。但是现在用jdom会报错一些格式问题,所以我想要直接从字符串的角度去截取这些节点间的数据,请问有哪些思路呢。节点的名称是固定的,但是里面的数据大小不是固定的,所以直接trim之类的行不通orz。因为很多个不同类型节点都需要读取数据,所以感觉正则表达式也不行。。
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Find the position of the node, split it into multiple string arrays based on the node position, and then get the data from the array. This will be better
Can you give me an example? Your description is too vague and I can’t answer it
Find the position of the node, split it into multiple string arrays based on the node position, and then get the data from the array. This will be better
Can you give me an example? Your description is too vague and I can’t answer it