pleonex / atom-autocomplete-xml

Autcomplete XML package for Atom editor.
https://atom.io/packages/autocomplete-xml
MIT License
13 stars 8 forks source link

Xpath calculation bug #23

Closed easycheese closed 8 years ago

easycheese commented 8 years ago

If one clicks on the first attribute, the xpath calculation is incorrect.

Ex:

<OrderHeader>
  <TsetPurposeCode>00</TsetPurposeCode>
  <PurchaseOrderDate>2016-05-09</PurchaseOrderDate>
</OrderHeader>

Click the 'e' in PurchaseOrderDate and view the path in the lower right is: OrderHeader/Purchase

Correct path should be OrderHeader/PurchaseOrderDate

pleonex commented 8 years ago

Fixed in cadb439