| Previous | Next |
| NS_E_WMPXML_PARSEERROR | NS_E_WMPXML_PINOTFOUND |
NS_E_WMPXML_ATTRIBUTENOTFOUND
What this HRESULT actually isolates
The symbolic result NS_E_WMPXML_ATTRIBUTENOTFOUND narrows 0xC00D0FB7 to the XML parser attribute not found condition: the requested named attribute or attribute index is absent on the current element. Keep the XML parser attribute not found boundary visible when a later dialog reduces it to a general media error.
An additional test is to record the current element, requested attribute name/index and namespace/case exactly as supplied; that evidence is more useful than reinstalling the Player or changing several unrelated settings at once.
State worth preserving
Capture state before Player cleanup:
- Decisive check: record the current element, requested attribute name/index and namespace/case exactly as supplied.
- Artifact: source URL or archive member and a hash of the exact XML bytes.
- State: encoding declaration, byte-order mark and parser input length.
- Object identity: last successful element, attribute or processing-instruction lookup.
- Underlying evidence: parser state when GetParseError, persist or lookup was called.
- Correlation: line/column or byte offset from any lower-level parser diagnostic.
Log paths, hashes, IDs, offsets, and HRESULTs. Exclude secrets and unrelated content from logs.
Reproduce without destroying evidence
- Preserve
0xC00D0FB7, the ErrorItem context and the object generation involved in the failing operation. - Compare the failing artifact with a known-good artifact that differs only in the suspected property.
- Separate acquisition, parsing, object construction, playback and persistence until the component that produced the failure is clear.
- Confirm the failure directly: record the current element, requested attribute name/index and namespace/case exactly as supplied.
- After you query an attribute defined for that element or handle its documented absence, recreate the owning WMP object and verify that the corrected generation completes.
What succeeds before this failure
Two platform rules frame the diagnosis. First, an XML document can be well-formed yet still fail the Windows Media schema or object-model rules expected by the caller. In this case, parser position, source encoding and the exact bytes supplied to the final parse call are more useful than a generic “bad XML” dialog.
Representative case: Code expects an HREF attribute while the current node is a different playlist element. The example isolates only the producing component.
Related HRESULTs, different boundaries
| Result | Different boundary |
|---|---|
NS_E_WMPXML_PARSEERROR | The XML parser rejected the supplied document but exposed no more specific WMP parser result |
NS_E_WMPXML_PINOTFOUND | The requested XML processing instruction is not present in the parsed document |
NS_E_WMPXML_EMPTYDOC | The caller attempted to persist a parser object that contains no document data |
If this result is followed by a broader “cannot play,” “cannot load,” or “operation failed” result, preserve the earlier event. A later wrapper error may be secondary.
Recovery at the right layer
Change the responsible precondition rather than masking the symptom: query an attribute defined for that element or handle its documented absence. A retry is meaningful only after that recorded condition changes.
- Avoid rewriting the XML before preserving the failing bytes and parser position; it can destroy the artifact or state needed to explain this result.
- Avoid treating a missing optional node as proof that the whole document is malformed; that can replace the original HRESULT with a secondary failure from another layer.
Practical interpretation
Use this result, 0xC00D0FB7 and the symbolic phrase in traces. Correlate search keys with API and object.
How to know the repair is real
Keep one fixture that reproduces 0xC00D0FB7 and one corrected fixture that changes only the identified precondition. This condition correction is complete when the intended operation succeeds without being replaced by a neighboring WMP HRESULT.
Technical references
- Windows Media Player SDK — API or format context for this HRESULT.
- Skin definition XML structure — documentation used to identify the producing boundary of this result.
- Windows Media metafile reference — normative or platform material relevant to this result.
- XML 1.0 specification
Looking for a different code? Search another status or error code.
