腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如何
使用
powershell
获取
特定
的
xml
元素
?
c#
、
xml
、
powershell
目前我们有一个
xml
文件,如下所示: <dircetory name="test"> <directory name="test2"></directory> </directory> </dire
浏览 20
提问于2017-06-18
得票数 0
回答已采纳
1
回答
PowerShell
-从.csproj文件获得版本
c#
、
powershell
我在学
PowerShell
。现在,我正在尝试从一个Version文件中
获取
.csproj
元素
值。.csproj文件
的
XML
如下所示: <TargetFramework>netcoreapp2.1
获取
Version
元素
值,我编写了以下
PowerShell
脚本: $
xml
浏览 0
提问于2018-09-12
得票数 11
回答已采纳
1
回答
如何
使用
PowerShell
获取
XML
元素
?
xml
、
powershell
、
object
、
element
我有一个这样
的
XML
文件 我想要得到
的
值code
使用
desc name=rt1..。我试过了,但总是空着。
浏览 40
提问于2021-02-25
得票数 1
回答已采纳
1
回答
使用
工件文件创建
xml
azure-devops
、
azure-pipelines-tasks
我很难得到任何关于
如何
做到这一点
的
信息。 <path></path> <checksum></checksum></files&
浏览 5
提问于2021-01-06
得票数 0
1
回答
使用
PowerShell
删除
特定
的
xml
元素
powershell
我有以下
xml
: </NS1:Price></NS1:PriceMaintenanceRequest> 我需要删除BusinessUnit
浏览 3
提问于2014-04-06
得票数 0
回答已采纳
2
回答
使用
Powershell
的
属性
的
XML
元素
名称
xml
、
powershell
、
attributes
、
nodes
、
elements
我想
使用
powershell
获取
属性
的
xml
元素
名称。谁可以请让我知道,如果我们有一个相同
的
内置功能。下面是名为pricefile.
xml
的
xml
文件 <PriceData“玩具
浏览 19
提问于2017-03-17
得票数 1
回答已采纳
1
回答
使用
PowerShell
从
xml
获取
XML
文本值时智能处理属性
xml
、
powershell
、
xpath
、
powershell-4.0
、
xml-attribute
要在
powershell
中
获取
XML
元素
的
值,我们可以简单地将项目看作是
PowerShell
对象
的
属性,即$
xml
.RootElement.ChildElement.GrandChild,从而写出路径。但是,如果我们感兴趣
的
元素
有一个相关
的
属性,那么要
获取
文本值,我们需要深入到文本节点,即$
xml
.RootElement.ChildElement.GrandChi
浏览 5
提问于2016-10-03
得票数 0
回答已采纳
1
回答
如何
在
PowerShell
中
获取
单个
XML
元素
xml
、
powershell
<log level="info" />并希望将name节点中
的
文本从"My Application“更改为"Name from
Powershell
”。我可以这样做:$nameNode = $
xml
.configuration.application.ChildNodes.It
浏览 0
提问于2017-04-25
得票数 3
回答已采纳
3
回答
如何
使用
VBS搜索
XML
文件中
的
变化字符串并将其替换为另一个字符串
xml
、
vbscript
、
replace
、
find
我有一个包含加密密码
的
配置
XML
文件。我们需要不时地重置此密码,执行此操作
的
方法包括从
XML
文件中剥离实际上是密码
的
字符串并保存该文件。这个过程还包括停止和重新启动几个我可以管理
的
服务,但我还没有想出搜索和替换字符串
的
方法,因为它可能每次都不同。我想用VBS来做这件事(因为这是我在脚本世界里所熟悉
的
全部),但我很乐意考虑用其他方式来做。&l
浏览 6
提问于2009-01-06
得票数 0
1
回答
PowerShell
核心``Select
Xml
`不返回任何内容
powershell-core
我有一个
XML
文件,我想要从
PowerShell
核心中
获取
值。<Version>
元素
的
值,即1.0.0。---- ---- -------当我尝试根据Microsoft
的
文档
获取
值时,
使用
: pwsh Select-
Xml
-Path test.csproj -XPath
浏览 10
提问于2019-11-07
得票数 0
2
回答
XPath语句将整数变量赋值给
powershell
脚本中
的
position()函数
xpath
、
powershell-2.0
我正在编写一个
Powershell
脚本,该脚本将
XML
文件作为输入,搜索与该
xml
文件中
的
特定
元素
/标记相关联
的
内部文本,并返回该
元素
/标记
的
位置(如果存在),以便可以
使用
该
元素
的
位置将内部文本替换为其他数据例如,可能有一个如下所示
的
xml
文件。。。我想存储一个变量
的
“位置”整数
的
“水果”<
浏览 1
提问于2013-08-10
得票数 0
1
回答
使用
powershell
搜索
XML
属性值
xml
、
powershell
我试图
使用
powershell
获取
一个
xml
属性值,但不确定
如何
读取这些属性。下面是名为myfile.
xml
的
示例
xml
文件<Parameter name ="internet" enabled ="true" />请建议我
如何
使用
powershell
获取
浏览 2
提问于2021-06-11
得票数 1
回答已采纳
2
回答
使用
Powershell
解析
XML
以
获取
子节点屏蔽时
的
.Name属性值
powershell
、
xml-parsing
在
Powershell
中,当
XML
元素
有一个名为‘.Name’
的
子节点来屏蔽该属性时,我
如何
获取
该属性
的
值。$
xml
= [
xml
]@" <Person> </Person>"@ Write-Hos
浏览 42
提问于2021-08-25
得票数 2
回答已采纳
1
回答
使用
Powershell
删除一组
XML
元素
xml
、
powershell
、
nodes
Powershell
提取文档中
的
某些
元素
(例如根据索引号
获取
名称或值
元素
)。但是,我不了解这些索引是
如何
工作
的
(或任何可能被称为
的
索引)。例如,查找name1给了我ctrl_btn,但是我会假设它是名字。有人能解释一下吗?然而,我真正
的
问题是创建一个脚本来删除文档中某些
元素
的
集合。名称和值在
XML
文档中总是唯一
的
(顺便说一句,在<variable>&l
浏览 3
提问于2012-10-24
得票数 4
回答已采纳
1
回答
如何
使用
Java中
的
XPath从
XML
中
获取
特定
节点?
java
、
android
、
xml
、
xpath
、
saxparser
我
的
xml
文件结构如下所示 </page> </chapters>我希望通过传递页面id和章节id来获得
特定
的
页面节点此外,图书节点包含太多<em
浏览 4
提问于2015-06-08
得票数 6
回答已采纳
3
回答
如何
将响应从调用-RestMethod转换为
XML
?
xml
、
powershell
、
rest
、
read-eval-print-loop
、
invoke-restmethod
引用“”
的
文件:PS /home/nicholas> $response = Invoke-RestMethod -Uri https://blogs.msdn.microsoft.com/
powershell
/feed/ PS /home/nicholas> $json = $response | ConvertTo-Js
浏览 0
提问于2020-11-18
得票数 2
回答已采纳
4
回答
使用
powershell
获取
xml
中属性
的
元素
名称
xml
、
powershell
、
xml-parsing
我想
使用
powershell
获取
属性
的
节点名。谁可以请让我知道,如果我们有一个相同
的
内置功能。下面是我
的
名为pricefile.
xml
的
xml
文件 <model type="model1" name="default" price="12.12" date="some_value"> <PriceData“玩具”
的
浏览 56
提问于2017-03-17
得票数 1
回答已采纳
1
回答
仅从
PowerShell
获取
XML
中
特定
节点
的
值。
xml
、
powershell
我有包含以下内容
的
this.
xml
文件:<Parameter IsEncrypted="False">$
xml
= [
xml
](Get-Content this.
xml
); $
xml
.Parameters.Parameter | Where-Object {$_.ParameterNam
浏览 0
提问于2018-04-11
得票数 0
回答已采纳
1
回答
通过
Powershell
获取
Solr核心
powershell
、
solr
、
powershell-2.0
、
solr4
是否有一种方法可以
使用
Powershell
来
获取
在我
的
本地Solr实例中运行
的
Solr核心
的
列表?我正在运行Solr 4.10.1,并
使用
Powershell
2.0。我想创建一个核心名称
的
文本文件:somecore2<response>
浏览 1
提问于2016-10-08
得票数 1
回答已采纳
3
回答
在目标C中
的
节点处
获取
XML
内容
objective-c
、
xml
使用
Objective C-我希望遍历
XML
树,并在与
特定
元素
名称匹配
的
特定
节点
的
每个实例上显示完整
的
XML
内容。 例如,我希望在
元素
b
的
每个实例中
获取
XML
(表示为NSString)。如果
元素
b中只有一个字符串,则可以
获取
该值,但是
如何
获得包含所有
元素
名称
的
格式化为<em
浏览 1
提问于2010-10-18
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券