网站将附件(文件)显示为 pdf 、 XMl (XRBL) 。我想以与查看 pdf 相同的方式查看 XRBL 文件中的信息,而不是实际信息。有没有同样的镀铬扩展。理想情况下,我想单击它,当它在浏览器中打开它时,在浏览器本身中以某种方式打开它,以便我可以从中理解它。如果在浏览器中不可能,那么如何最好地以视觉格式而不是文本形式查看内容。
使用 Powershell 脚本
using assembly System.Xml.Linq
$URI = 'https://nsearchives.nseindia.com/corporate/xbrl/KANDARP_05042024142508_CLOSURE_TRADING_WINDOW_1081236_05042024022507_WEB.xml'
$Response = Invoke-WebRequest -URI $URI
$doc = [System.Xml.Linq.XDocument]::Parse($Response.Content)
$root = $doc.Root
$table = [System.Collections.ArrayList]::new()
foreach($element in $root.Elements())
{
if($element.Attribute('contextRef') -ne $null)
{
$newRow = New-Object -TypeName psobject
$newRow | Add-Member -NotePropertyName Name -NotePropertyValue $element.Name.LocalName
$newRow | Add-Member -NotePropertyName 'Context Ref' -NotePropertyValue $element.Attribute('contextRef').Value
$newRow | Add-Member -NotePropertyName Value -NotePropertyValue $element.Value
$table.Add($newRow) | Out-Null
}
}
$table
结果
Name Context Ref Value
---- ----------- -----
NameOfTheCompany MainI Kandarp Digi Smart Bpo Limited
NSESymbol MainI KANDARP
ScripCode MainI 000000
MSEISymbol MainI NOTLISTED
ISIN MainI INE0MOT01016
TypeOfAnnouncementForClosureOfTradingWindow MainI New
TypeOfEventForClosureOfTradingWindow MainI Closure of Trading Window
DateOfStartOfTradingWindowClosure MainI 2024-04-02
BriefDetailsForTradingWindowClosureEndDate MainI Shall be closed till 48 hours after the declaration of finan...
DateOfReport MainI 2024-04-05