XMLAttribute查询

时间:2018-03-08 07:36:28

标签: xml powershell

我有一个XML如下:

start.List

我已经能够通过PowerShell

访问以下所有节点/属性值
Prelude> i = 2
Prelude> str = "HelloWorld"
Prelude> let (x, y) = splitAt i str
Prelude> x
"He"
Prelude> y
"lloWorld"

如何查看splitList下的内容,它不会产生任何结果

1 个答案:

答案 0 :(得分:3)

您必须使用引号,因为该名称包含一个点:

<div id="modalcreatelist" class="modal"> 
  <div class="modal-content"> 
    <div class="col s12 m6 l12"> 
      <div class="row"> 
        <h6><b>Create a list..</b></h6> 
          <div class="divider"></div> <p>Title</p> 
          <input type="text" placeholder="Title.." id="listTitle"> 
          <input type="hidden" id="hiddenListId" value="<?php foreach($board as $r) {echo $r->boardId;}?>"> 
      </div> 
    </div> 
    </div> 
      <div class="modal-footer"> <a class="waves-effect waves-red btn-flat modal-action modal-close">Close</a> <a class="waves-effect waves-red btn-flat modal-action modal-close" onclick="createList()">Save</a> 
    </div> 
</div>