Xml Error:

Тема в разделе "HTML, CSS, XML, JavaScript", создана пользователем kotvip, 26 мар 2010.

  1. kotvip

    kotvip Гость

    Всем Привет!
    При загрузки xml выкидывает ошибки
    Error: Error processing '....................', line 2, char 13: invalid start tag <Operations> in <> (UTIL1100-3) (SVC10-109),

    Error: Parse error occurred - Premature end of file. (SVC10-109)


    ???
     
  2. Artem325

    Artem325 Гость

    Скинь код посмотреть в районе указанной ошибки (первых несколько строк)
     
  3. kotvip

    kotvip Гость

    <?xml version="1.0" encoding="Shift_JIS" ?>
    <Operations>
    <Replace>
    <Services>
    <Service>
    <Name>69970093-C777-494C-BE61-E9CDBFF99582</Name>
    <Label>Virtual top node (do not remove)</Label>
    <Description>This top level node is a container for all SNVP services of this hierarchy. It is not visible in the Service Navigator GUI</Description>
    </Service>
    </Services>

    Добавлено: пытаюсь загрузить другой xml
    выкидывает
    opcservice -check /var/all.xml

    Error: Error processing 'file:/var/all.xml', line 2, char 10: invalid start tag <Results> in <> (UTIL1100-3) (SVC10-109)

    начало текста

    <?xml version='1.0' ?>
    <Results>
    <Services>
    <Action>
    <Name>LaunchConfigurationDashboard</Name>
    <Label>Launch Configuration Dashboard</Label>
    <Description>Launch SiteScope Configuration Dashboard</Description>
    <URL>$OPC_SERVICE_VALUE[protocol]://$OPC_SERVICE_NODE:$OPC_SERVICE_VALUE[sisport]/SiteScope</URL>
    </Action>
    <Action>
    <Name>LaunchGroupDashboard</Name>
    <Label>Launch Group Dashboard</Label>
    <URL>$OPC_SERVICE_VALUE[protocol]://$OPC_SERVICE_NODE:$OPC_SERVICE_VALUE[sisport]/SiteScope/servlet/Main?activeid=$OPC_SERVICE_VALUE[groupid]&activerighttop=dashboard&dashboard_view=Details&dashboard_model=true&dashboard_favorite=None</URL>
    </Action>
    <Action>
    <Name>LaunchMonitorDashboard</Name>
    <Label>Launch Monitor Dashboard</Label>
    <URL>$OPC_SERVICE_VALUE[protocol]://$OPC_SERVICE_NODE:$OPC_SERVICE_VALUE[sisport]/SiteScope/servlet/Main?activeid=$OPC_SERVICE_VALUE[internalid]&activerighttop=dashboard&dashboard_view=Details&dashboard_model=true&dashboard_favorite=None</URL>
     
  4. kotvip

    kotvip Гость

    весь текст?
     
  5. kotvip

    kotvip Гость

    спасибо, сейчас исправлю

    а по второму тексту, что посоветуете?
     
  6. kotvip

    kotvip Гость

    <ServiceRef>SiteScopeMonitorGroup:aktassg1.1.1.2.1.1.1.2.1.1.1.1.2.1.1.1.1.1.1.1.1.1.1.1@
    @sis.telecom</ServiceRef>
    <ServiceRef>SiteScopeMonitorGroup:aktassg1.1.1.2.1.1.1.2.1.1.1.1.2.1.1.1.1.1.1.1.1.1.1@@s
    is.telecom</ServiceRef>
    <ServiceRef>SiteScopeMonitorGroup:aktassg1.1.1.2.1.1.1.2.1.1.1.1.2.1.1.1.1.1.1.1.1.1@@sis
    .telecom</ServiceRef>
    <ServiceRef>OSSPI:nodename@@Remedy233</ServiceRef>
    <ServiceRef>OSSPI:nodename@@Remedy235</ServiceRef>
    <ServiceRef>OSSPI:nodename@@Remedy236_ars.db</ServiceRef>
    <ServiceRef>OSSPI:nodename@@Remedy237</ServiceRef>
    <ServiceRef>OSSPI:nodename@@impact1</ServiceRef>
    <ServiceRef>OSSPI:nodename@@impact2</ServiceRef>
    <ServiceRef>OSSPI:nodename@@omnibus1</ServiceRef>
    <ServiceRef>OSSPI:nodename@@omnibus2</ServiceRef>
    <ServiceRef>OSSPI:nodename@@rad1</ServiceRef>
    <ServiceRef>OSSPI:nodename@@rad2</ServiceRef>
    <ServiceRef>OSSPI:nodename@@reporter</ServiceRef>
    <ServiceRef>OSSPI:nodename@@webtop</ServiceRef>
    <ServiceRef>1..10</ServiceRef>
    <ServiceRef>11..20</ServiceRef>
    <ServiceRef>21..30</ServiceRef>
    <ServiceRef>31..35</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes32</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes33</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes34</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes35</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes30</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes29</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes28</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes27</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes26</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes24</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes23</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes22</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes20</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes19</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes18</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes17</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes16</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes15</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes14</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes13</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes12</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes11</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes9</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes7</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes6</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes5</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes4</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes3</ServiceRef>
    <ServiceRef>OSSPI:nodename@@probes10</ServiceRef>
    </RemoveLoggings>
    <AddLoggings>
    </AddLoggings>
    </Operations>


    Добавлено: уже другую ошибку выкидывает

    Error: Parse error occurred - -1 (SVC10-109)
     
  7. Гость

    Здравствуйте. я новичёк в программировании. :D Нужен небольшой пример на XML, чтобы я могла разобрать, желательно, чтобы применялись основы. Спасибо.... :please:)))
     
Загрузка...

Поделиться этой страницей