1
xpaths로 가득 찬 클래스가 있습니다. 이제는 특정 네임 스페이스가 필요합니다. 이것을 어떻게 할 수 있습니까? 이 코드를 리팩토링하는 가장 쉬운 방법은 무엇입니까? 대체 찾으세요?xpath에 네임 스페이스 추가하기
미리 네임 스페이스를 모르는 경우 미래에 특정 노드를 잡는 가장 좋은 방법은 무엇입니까?
susr1 = root.SelectSingleNode("/PurchaseOrderRequest/DocumentHeader/DocumentInformation/DocumentIdentification/Type");
susr1 = root.SelectSingleNode("/PurchaseOrderRequest/ssdh:DocumentHeader/ssdh:DocumentInformation/ssdh:DocumentIdentification/ssdh:Type");