uli-weltersbach / XPathTools

A Visual Studio Extension which can run any XPath and XPath function; navigates through results at the click of a button. Can show and copy any XPath incl. XML namespaces, avoiding XML namespace induced headaches. Keeps track of the current XPath via the statusbar.
41 stars 4 forks source link

Entity with externally linked DTD #14

Closed JanPalasek closed 7 years ago

JanPalasek commented 7 years ago

If I have entity in my XML file and externally (but correctly) linked DTD explaining meaning of this entity, right click doesnt offer the standard menu. Note: If I use internal DTD in my XML file, it works with no problem.

uli-weltersbach commented 7 years ago

Thanks for reporting this. Is any error being displayed? Can you share a simple example which I can work off of?

JanPalasek commented 7 years ago

No error shows up. If I use my correctly defined entity: https://ctrlv.cz/gSUs (XPath options don't pop up) If I do not use an entity: https://ctrlv.cz/2tdY

Xml: https://pastebin.com/vDjBkPqU Dtd: https://pastebin.com/UwSA9zxw

Note: I use a fully updated VS 2017.

uli-weltersbach commented 7 years ago

I was able to reproduce the issue and hope to have a fix soon.

uli-weltersbach commented 7 years ago

@Bimbinbiribong: The issue should be fixed now, but you have to specify the full file path (e.g. "C:\WoW\GameObjDb.dtd") or fully qualified URL ("https://mydomain.com/GameObjDb.dtd") to the DTD file. The new version of the VS plugin should be out in a couple of hours.

JanPalasek commented 7 years ago

Thanks, it's weird not to have relative paths working tho...

uli-weltersbach commented 7 years ago

Hmm, you're right, I'll try to work it in there.

uli-weltersbach commented 7 years ago

@Bimbinbiribong: I just released v4.2.2 which should support relative paths as well. Let me know if it works for you.

JanPalasek commented 7 years ago

@uli-weltersbach It seems to be working. :)