1 /* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "xml_element.h" 17 18 namespace OHOS { 19 namespace Media { 20 namespace Plugins { 21 namespace HttpPlugin { 22 GetParent()23std::shared_ptr<XmlElement> XmlElement::GetParent() 24 { 25 return nullptr; 26 } 27 GetChild()28std::shared_ptr<XmlElement> XmlElement::GetChild() 29 { 30 return shared_from_this(); 31 } 32 GetSiblingPrev()33std::shared_ptr<XmlElement> XmlElement::GetSiblingPrev() 34 { 35 return nullptr; 36 } 37 GetSiblingNext()38std::shared_ptr<XmlElement> XmlElement::GetSiblingNext() 39 { 40 return nullptr; 41 } 42 GetLast()43std::shared_ptr<XmlElement> XmlElement::GetLast() 44 { 45 return nullptr; 46 } 47 GetXmlNode()48xmlNodePtr XmlElement::GetXmlNode() 49 { 50 return nullptr; 51 } 52 GetName()53std::string XmlElement::GetName() 54 { 55 return name_; 56 } 57 GetText()58std::string XmlElement::GetText() 59 { 60 if (name_ == "pssh") { 61 return "pssh"; 62 } 63 if (name_ == "BaseURL") { 64 return "BaseURL"; 65 } 66 return "null"; 67 } 68 GetAttribute(const std::string & attrName)69std::string XmlElement::GetAttribute(const std::string &attrName) 70 { 71 return ""; 72 } 73 } // namespace HttpPluginLite 74 } // namespace Plugin 75 } // namespace Media 76 } // namespace OHOS