Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我了解,这是一个已知问题,将在 VTD-XML 的后续版本中修复。从我目前的观察来看,这还没有解决。是否有专门设计好的解决方法?
删除内容后留下的新行真的很烦人,因为它破坏了文件从版本 x 到版本 x1 的差异。
在 2.12 中添加了一个名为 expandWhitespace 的新方法,您可以调用它来删除此用例中的空格...它已经在 cvs 存储库中,您可以签出...基本用法是调用vn.expandWhitespace(vn.getContentFragment())它返回一个 long ,您可以然后用 XMLModifier 删除...如果可以的话,从 cvs 中检查 vtdNav.java...
vn.expandWhitespace(vn.getContentFragment())