我创建了一个小脚本来更改文件名(用_等替换空格).我用参数控制这个脚本.
现在我想将它包含在我的explorer-shell-extention中,所以我尝试添加以下注册表项:
HKEY_CLASSES_ROOT\*\shell\edit filname method a\command
HKEY_CLASSES_ROOT\*\shell\edit filname method b\command
HKEY_CLASSES_ROOT\*\shell\edit filname method c\command
Run Code Online (Sandbox Code Playgroud)
等等.
它工作正常,但我想将所有这些方法打包成一个子菜单.有点像"开放式"选项.那可能吗?
我试图通过simplexml_load_string()从PHP中解析来自Amazon API的XML响应.
我得到的XML看起来像这样:
<?xml version="1.0" encoding="UTF-8"?>
<GetMatchingProductForIdResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<GetMatchingProductForIdResult Id="xxx" IdType="SellerSKU" status="Success">
<Products>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>xxxx</MarketplaceId>
<ASIN>xxx</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd" xml:lang="de-DE">
<ns2:Binding>Elektronik</ns2:Binding>
<ns2:Brand>Panasonic</ns2:Brand>
<ns2:Feature>xx</ns2:Feature>
<ns2:Feature>xxx</ns2:Feature>
<ns2:Feature>xxx</ns2:Feature>
<ns2:Feature>xxx</ns2:Feature>
<ns2:Feature>xxx</ns2:Feature>
<ns2:Label>Panasonic</ns2:Label>
<ns2:Manufacturer>Panasonic</ns2:Manufacturer>
<ns2:PackageDimensions>
<ns2:Height Units="inches">xx</ns2:Height>
<ns2:Length Units="inches">xx</ns2:Length>
<ns2:Width Units="inches">xxx</ns2:Width>
</ns2:PackageDimensions>
<ns2:PartNumber>xxx</ns2:PartNumber>
<ns2:ProductGroup>Computer & Zubehör</ns2:ProductGroup>
<ns2:ProductTypeName>COMPUTER_COMPONENT</ns2:ProductTypeName>
<ns2:Publisher>Panasonic</ns2:Publisher>
<ns2:SmallImage>
<ns2:URL>xxx.jpg</ns2:URL>
<ns2:Height Units="pixels">xx</ns2:Height>
<ns2:Width Units="pixels">xx</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Panasonic</ns2:Studio>
<ns2:Title>xxx</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships />
<SalesRankings />
</Product>
</Products>
</GetMatchingProductForIdResult>
<ResponseMetadata>
<RequestId>xx</RequestId>
</ResponseMetadata>
</GetMatchingProductForIdResponse>
Run Code Online (Sandbox Code Playgroud)
我的PHP代码:
$response = $service->GetMatchingProductForId($request); //making the call
$response = $response->toXML();
$response …Run Code Online (Sandbox Code Playgroud)