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.
このファイルから name 属性の xpath を取得する方法を教えてください。
<asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity name="MyName"/> </asmv1:assembly>
nant xmlpoke タスクで取得しようとしていますが、成功していません。
ありがとう。
これでうまくいくはずです:
//asmv1:assembly/asmv1:assemblyIdentity/@name
このXPathを試してください
/*[local-name()='assembly']/assemblyIdentity/@name