In Listing 4, I've highlighted two references to the Phone type, one in green and one in red.
在清单4中,突出显示了两个对Phone类型的引用,一个是绿色的,另一个是红色的。
To delete only one of the phone elements, you can use a predicate in the MODIFY clause, such as modify do delete $new/customerinfo/phone[@type = "work"].
如果只希望删除 “phone”元素之一,那么可以在MODIFY 子句中使用一个谓词,比如 modifydodelete $new/customerinfo/phone[@type = "work"]。
To delete only one of the phone elements, you can use a predicate in the MODIFY clause, such as modify do delete $new/customerinfo/phone[@type = "work"].
如果只希望删除 “phone”元素之一,那么可以在MODIFY 子句中使用一个谓词,比如 modifydodelete $new/customerinfo/phone[@type = "work"]。
应用推荐